javascript – Selenium + ChromeDriver

Question:

I'm developing a tool to log in to a website, but I have a problem.

When I do the manual procedure (opening a browser, accessing the website, typing user/password and logging in), the next one is loaded without opening another tab or another page, but when I do it via the IDE, when logging in, the browser understands that have to open another page.

Would anyone know how to solve this problem? Because I've looked about it and found nothing.

Answer:

I managed to solve (after divine intervention) the problem.

After I log into the site, I enter the following code:

driver.getPageSource();

Thanks.

Scroll to Top