Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
I just cant get Selenium to wait for new page to load however I try.
require('chromedriver'); const selenium = require("selenium-webdriver"); const By = selenium.By; const until = selenium.until; const LoginPage = require('./pages/login'); const NewList = require('./pages/newlist'); const driver = new selenium.Builder().forBrowser("chrome").build(); const loginPage = new LoginPage(driver); loginPage.open(); loginPage.login(); // This is where i get errors // How do I get selenium to pause here until the new page is loaded const newList = new NewList(driver); newList.clickButton();