driver.findElement(By.xpath("//*[@id=\"io-ox-login-username\"]")).sendKeys("leads@xyz.com");
driver.findElement(By.xpath("//*[@id=\"io-ox-login-password\"]")).sendKeys("abc2123");
driver.findElement(By.xpath("//*[@id=\"io-ox-login-button\"]")).click();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.findElement(By.xpath("//div[@class='folder-label']//div[contains(text(),'Inbox')]")).click();
List<WebElement> a = driver.findElements(By.xpath("//*[@id='io.ox/mail']"));
System.out.println(a.size());
Asked
Active
Viewed 226 times
0

Sven Eberth
- 3,057
- 12
- 24
- 29
-
List
a not reading inbox – Satish Bangar Apr 13 '18 at 12:26 -
we cannot answer your question, since your question is for a specific website. Specify from which website you want to read the subject line – Japu_D_Cret Apr 13 '18 at 12:28
-
What is the value of a.size() ? can you check with isEmpty() also. Update me with the results to solve your issue. – cruisepandey Apr 13 '18 at 16:51
1 Answers
0
Try using getAttribute("value");
assuming "//*[@id='io.ox/mail']"
is your inbox..
driver.findElements(By.xpath("//*[@id='io.ox/mail']").getAttribute("value");
should work, if not change the By element for the right one.

Sven Eberth
- 3,057
- 12
- 24
- 29

IceClimberMx
- 1
- 1
-
-
thats the thing. i dont think findElements should be used at all. – IceClimberMx Apr 14 '18 at 21:10
-