Data Provider public java.lang.Object[] as.get()
must return either Object[][]
or Iterator<Object>[]
, not class java.lang.Object;
I am getting this error when executing Testng in selenium
905 views Asked by Mani At
1
Data Provider public java.lang.Object[] as.get()
must return either Object[][]
or Iterator<Object>[]
, not class java.lang.Object;
As the documentation says:
So, I suppose you current data provider method is returning
Object
instead of one of the 2 supported types.