2
I’m automating an operation on a website with Selenium Webdriver and in a particular region of the site when sending a wait
using the WebDriverWait
it exceeds the maximum time and does not find, but I have checked several times the Id and that’s correct, this problem had already happened in other regions of the site, but I was able to solve by giving a driver.SwitchTo().Frame("NomeDoIframe")
, that is to switch to the iframe where the elements were, but now when I do this it gives error saying that can not find the iframe. I’m using the browser Phantomjs.
Is there any way to find Xpath? CSS? Minimal Xpath? Name? or something more consistent? Sometimes not the same account ID... I always prefer Xpath and CSS.
– Paulo Roberto
I use Xpath a lot too, I was trying with it, put the path and in one of the elements put the Id, I’ll see if there are other parameters I can use, vlw
– Jeremias Santos