instaclick / php-webdriver

W3C and Selenium 2 webdriver "thin client" for php 5.3+ and namespaces.
Other
436 stars 62 forks source link

Caching of Capabilities in W3C Mode #99

Closed GeraldWolfInvia closed 4 years ago

GeraldWolfInvia commented 4 years ago

The Session object, when trying to cache its own Capabilities, calls

GET /session/:sessionId

which isn't part of the W3C-Documentation and so Selenium (or probably chromedriver) fails to recognize that as a W3C command. That being said, new Sessions are initialized (in the webdriver-function "session") by calling

POST /session

and the response contains both the sessionId and the Capabilities of the newly created Session which is then used to create a Session object - except that it doesn't pass on the Capabilities that it already has but instead lets the Session object make a non-W3C command.

ENV: