MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

driver.switchto().alert().getText() Invalid? #355

Closed xz8090 closed 4 years ago

xz8090 commented 4 years ago

When I used the driver.switchto().alert().getText(), it didn't respond. It stayed there and didn't report an error. I thought it was because my element couldn't be found. Then I used the same writing method to use the chromedriver to run normally. What's the reason? It's been bothering me for more than a week.

xz8090 commented 4 years ago

I try to set Settings.builder().headless(false) to open the built-in browser, and there is no alert dialog for manual clicking.

xz8090 commented 4 years ago

Setting.ignoreDiaglogs(false)