php-webdriver/php-webdriver
MSEdge is multiplatform, but DesiredCapabilities requires Windows
Aberta
#1.076 aberto em 27 de set. de 2023
bughelp wanted
Métricas do repositório
- Stars
- (4.943 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Bug description
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
- Run the aforementioned docker image.
- Use
DesiredCapabilities::micrsoftEdge() - Note that it won't connect
- Use
DesiredCapabilities::micrsoftEdge()->setCapability(WebDriverCapabilityType::PLATFORM, WebDriverPlatform::ANY); - 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