Skip to main content
added 7 characters in body
Source Link
demouser123
  • 3.5k
  • 5
  • 29
  • 41

You are using findElementfindElement method which will return single element but you are try to save it in the list.

Your code should be

WebElement a=driver.findElement(By.className("android.widget.EditText"));

 WebElement a=driver.findElement(By.className("android.widget.EditText"));

You are using findElement method which will return single element but you are try to save it in the list.

Your code should be

WebElement a=driver.findElement(By.className("android.widget.EditText"));

You are using findElement method which will return single element but you are try to save it in the list.

Your code should be

 WebElement a=driver.findElement(By.className("android.widget.EditText"));
Source Link

You are using findElement method which will return single element but you are try to save it in the list.

Your code should be

WebElement a=driver.findElement(By.className("android.widget.EditText"));