Skip to content

Conversation

@matil019
Copy link
Contributor

Resolves #136

Nice to meet you!

This PR modifies instance FromJSON Element so that it accepts "element-6066-11e4-a52e-4f735466cecf" as well as "ELEMENT".

This is a quick-fix which doesn't really try to adhere to the W3C protocol, unlike #144. That said, this fix improves the situation with Firefox from "not working at all" to "somehow working". Also, it's what the official Python remote webdriver appears to be doing: remote/webdriver.py

If interested, here is the script I used.

This PR includes a couple of other fixes which address the compiler warnings.

@erratic-pattern
Copy link
Member

Awesome! Great change!

@erratic-pattern erratic-pattern merged commit 8436094 into haskell-webdriver:master Mar 22, 2019
@matil019 matil019 deleted the element-compat branch May 12, 2019 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BadJSON "key \"ELEMENT\" not present"

2 participants