webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

platformName/browserName case sensitivity

Open gsnedders opened this issue 6 months ago • 0 comments

Currently platformName/browserName have to be passed in ASCII lowercase to match (they're lowercased before comparison); some quick testing makes it seem like chromedriver and geckodriver do have this behaviour, but safaridriver does not.

Searching on GitHub suggests there's a reasonably large amount of usage, of "Android" and "iOS" especially (and the latter makes me wonder if chromedriver and/or geckodriver do something different for Android?). That said, even Windows, Linux, macOS see common usage — even on the Selenium docs (cc @shs96c). That said, I wonder if Selenium is lowercasing them before it gets beyond it?

I'm slightly hesitant about changing behaviour of iOS here, but probably needs more testing to check what various implementations do when given an uppercase platformName/browserName — does it simply never reach the wire protocol?

gsnedders avatar May 21 '25 23:05 gsnedders