appium / appium/java-client

Unimplemented Command: css selector locator strategy is not supported

Open
#1,366 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the driver.switchTo().frame("Visual Sandbox Host (Minimal)") entry point and the logged POST /elements request. Confirm whether CSS selector support belongs to this Java client or the Windows driver, then reproduce the 501 response with the provided environment details. Done means the ownership and supported behavior are established, with a focused fix or limitation documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.