appium / appium/java-client

Locator Strategy 'css selector' is not supported for this session

Open
#1,084 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

User side problem/problem of an external tool
Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

Description

Locator Strategy 'css selector' is not supported for this session after appium update.
No css selectors are being used in the project.
Java Client 7.0.0
Appium Server 1.10.0
Running on ipad mini4 ios12 real device.

Logs
https://gist.github.com/jtoal436/5a33661f5ac53b7ee3c4520a4314e906

When updating the java client in the pom file the long press no suitable method for longPress is appearing and this was working before the update. The issue happens when the java-client compile dependency is updated.

public void scroll(int pressX2, int bottomY2, int pressX12, int topY2) {
    TouchAction touchAction = new TouchAction(driver);
    touchAction.longPress(pressX2, bottomY2).moveTo(pressX12, topY2).release().perform();

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 Java Client dependency in the pom file and the scroll method using TouchAction.longPress. Reproduce the reported behavior with Java Client 7.0.0, Appium Server 1.10.0, and the iPad mini 4 setup, then inspect the linked logs. Done would require determining whether the CSS-selector and longPress failures share a client compatibility issue, but the issue does not define a specific expected change or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.