admc / wd

A node.js client for webdriver/selenium 2.
Other
1.53k stars 402 forks source link

Active Element Func Listed, But Not Implemented #597

Open cjfritz opened 5 years ago

cjfritz commented 5 years ago

Upon attempting to use the following command given in the wd docs, image I receive this error:

 Error: [active()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: Method has not yet been implemented

Will this function be implemented in a coming release? If not, should it be removed from the docs for now to avoid confusion? After researching, I am unable to find a workaround, but if anyone has any ideas on how to get the element in focus without a locator, that would be excellent! Thanks for your time.

imurchie commented 5 years ago

This is a server-side issue. The particular server you are interacting with does not implement that method in the context you are in. If you were running against something else (say, Selenium vs. Appium) this would not be the case.

cjfritz commented 5 years ago

I am using wd in an mobile context through Appium, and according to their docs, the active() driver function is available, though I experience the issue above. image