tebeka / selenium

Selenium/Webdriver client for Go
MIT License
2.53k stars 409 forks source link

SetAlertText returns error #236

Open jucasansao opened 3 years ago

jucasansao commented 3 years ago

The SetAlertText should send text to the input box of a browser prompt (https://w3c.github.io/webdriver/#user-prompts), as the image below:

image

When this method is called, with text as argument, it returns the following errors:

Chrome: bad server reply status: 400 Bad Request Firefox: invalid argument: Body was not a JSON Object