System.out.println(driver.findElements(By.xpath("//*[@class='product-box']")).size());
It was working good and give me the correct count of that webelement but once I run this code via chrome. It is always giving 0.
Is there any problem of running this code?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bb2bc8d4-9935-46a7-9c4d-720956c0a245%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.