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?
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?