Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSEdge is multiplatform, but DesiredCapabilities requires Windows #1076

Open
uuf6429 opened this issue Sep 27, 2023 · 0 comments
Open

MSEdge is multiplatform, but DesiredCapabilities requires Windows #1076

uuf6429 opened this issue Sep 27, 2023 · 0 comments
Labels
bug Something isn't working help wanted We'd appreciate help on this issue

Comments

@uuf6429
Copy link
Contributor

uuf6429 commented Sep 27, 2023

Bug description

WebDriverCapabilityType::PLATFORM => WebDriverPlatform::WINDOWS,

I believe the value should be ANY (like Firefox's or Chrome's), not WINDOWS since MSEdge also runs on OSX (and I guess Linux too).

I found this problem while running the mink driver testsuite on selenium/standalone-edge docker image. Changing the line above to ANY made it work.

(ironically, I got this problem while running on Windows, since I'm not using Windows docker containers and it's therefore considered as Linux)

How could the issue be reproduced

  1. Run the aforementioned docker image.
  2. Use DesiredCapabilities::micrsoftEdge()
  3. Note that it won't connect
  4. Use DesiredCapabilities::micrsoftEdge()->setCapability(WebDriverCapabilityType::PLATFORM, WebDriverPlatform::ANY);
  5. It will now connect and work as expected

Expected behavior

No response

Php-webdriver version

1.15.0

PHP version

8.1

How do you start the browser driver or Selenium server

selenium/standalone-edge

Selenium server / Selenium Docker image version

4

Browser driver (chromedriver/geckodriver...) version

117

Browser name and version

edge 117

Operating system

Docker Desktop on Windows

Additional context

No response

@uuf6429 uuf6429 added the bug Something isn't working label Sep 27, 2023
@OndraM OndraM added the help wanted We'd appreciate help on this issue label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted We'd appreciate help on this issue
Projects
None yet
Development

No branches or pull requests

2 participants