Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Better way to check element between getPageSource and webelement - selenium java

$
0
0

At first I used driver.findElement(By.xpath("//div[@class='xxx']")) to find but I think it's too slow.

I think I'll use getPageSource after that use indexOf() to search from the text.

Which one is better?


Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>