I'm automating an operation on a site with the Selenium Webdriver and in a certain region of the site when I send a wait
using WebDriverWait
it exceeds the maximum time and does not think so, but I checked several times the Id and is correct, this problem had already happened in other regions of the site, but I was able to solve by giving driver.SwitchTo().Frame("NomeDoIframe")
, ie changing to the iframe where the elements were, but now when I do this it gives error saying that it can not find the iframe . I am using the PhantomJS browser.