new WebDriverWait(driver, 60)
.until(ExpectedConditions.presenceOfElementLocated (By.name("name")));
Hi,Please point me in the right direction. I am a beginner and I have tried many solutions to get past this issueAppreciate your help. Why is the browser not loading the new page? What should I try next?
Hi,Please point me in the right direction. I am a beginner and I have tried many solutions to get past this issueAppreciate your help. Why is the browser not loading the new page? What should I try next?
Hi I am just learning Webdriver. The flow that I am automating has 5 screens. 2 of the screens, I was able to navigate using webdriver. After details are input in the 2nd screen and ENTER is clicked, the 3rd screen is not getting loaded in the Webdriver browser.
When I try this manually this works fine. I have tried out various logic for waiting for the page to laod and searching for invisible elements.
is this some limitation of the webdriver browser?
WebDriver driver = new FirefoxDriver();
driver.get("url");
// Find the text input element by its name
WebElement element = driver.findElement(By.className("clicButton"));
// Enter something to search for
element.click();
System.out.println("completed start");
WebElement element1 = driver.findElement(By.name("contactphone"));
element1.sendKeys("number");
// Now submit the form. WebDriver will find the form for us from the element
//element1 = driver.findElement(By.id("the id"));
//element1.click();
element1.sendKeys(org.openqa.selenium.Keys.ENTER);
System.out.println("clicked continue");
//WebDriverWait wait = new WebDriverWait(driver,10);
//WebElement element2 = wait.until(driver.findElement(By.name("name")));
//wait.until(driver.findElement(By.name("name")).isDisplayed());
new WebDriverWait(driver, 60)
.until(ExpectedConditions.presenceOfElementLocated (By.name("name")));
Exception in thread "main" org.openqa.selenium.TimeoutException: Timed out after 60 seconds waiting for presence of element located by: By.name: name Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_20' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:255) at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:270) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:222) at LoadUsers.main(LoadUsers.java:49) Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: Command duration or timeout: 0 milliseconds
Hi,I am facing a similar situation. I have about 30 pages and I want to click the next element again and again until I reach the 30th page. But after the second click the page stops and the driver quits. But if I am using debugger I am able to click through the next element and navigate till the 30th page which is the last page. I am not able to figure out where the problem lies. My best guess is the webdriver is not waiting.I am using SafariDriver. I have tried usingimplicit wait as followsdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Also is there some way I can assure that the new page has been loaded fully after I click next (next is a web element)
Any suggestion/tips is greatly appreciated.Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tal_Bk0TctIJ.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,I am facing a similar situation. I have about 30 pages and I want to click the next element again and again until I reach the 30th page. But after the second click the page stops and the driver quits. But if I am using debugger I am able to click through the next element and navigate till the 30th page which is the last page. I am not able to figure out where the problem lies. My best guess is the webdriver is not waiting.I am using SafariDriver. I have tried usingimplicit wait as followsdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Also is there some way I can assure that the new page has been loaded fully after I click next (next is a web element)
Any suggestion/tips is greatly appreciated.Thanks
On Thursday, September 6, 2012 11:45:52 AM UTC-7, Mike Riley wrote: