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

Unimplemented Command: css selector locator strategy is not supported #1366

Open
rajfivestar opened this issue Jun 26, 2020 · 0 comments
Open

Comments

@rajfivestar
Copy link

rajfivestar commented Jun 26, 2020

Description

I'm using AndroidDriver with Selenium WebDriver (Java) to automate my Power BI application, There was an issue in handling iframe inside the window. Able to achieve the same scenario via Web but not able to switch to the frame in windows application.

Environment

Winappdriver logs:

POST /session/DF76DDC3-BE4D-4EE6-8234-47E6F56671DE/elements HTTP/1.1
Accept-Encoding: gzip
Connection: Keep-Alive
Content-Length: 140
Content-Type: application/json; charset=utf-8
Host: 127.0.0.1:4723
User-Agent: selenium/3.141.59 (java windows)

{
"using": "css selector",
"value": "frame[name='Visual Sandbox Host \(Minimal\)'],iframe[name='Visual Sandbox Host \(Minimal\)']"
}
HTTP/1.1 501 Not Implemented
Content-Length: 69
Content-Type: text/plain; charset=utf-8

Unimplemented Command: css selector locator strategy is not supported
Exception in thread "main" org.openqa.selenium.WebDriverException: Unimplemented Command: css selector locator strategy is not supported
Command duration or timeout: 74 milliseconds
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'DESKTOP-PFJ57AK', ip: '192.168.0.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'
Driver info: io.appium.java_client.android.AndroidDriver

Details

Please provide more details, if necessary.

Code To Reproduce Issue [ Good To Have ]

driver.switchTo().frame("Visual Sandbox Host (Minimal)");

Exception Stacktraces

Please create a gist with the pasted stacktrace of the exception thrown by java.

Link To Appium Logs

Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant