Skip to content
Advertisement

Unable to locate xpath on Selenium.htmlunit.HtmlUnitDriver

I’m trying to click the "PLAY DEMO" button and and then click the `”C

Advertisement

Answer

When you click on CONFIRM AGE button a new tab is opened. And need to switch to the new window to extract the required information.

And better to apply some Explicit waits.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement