google / google/EarlGrey

Add CSS selector matcher

Open
#211 11 comments 2 reactions 0 assignees View on GitHub
Hacktoberfest type: feature-request
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Given the following `input`:

>

Matching on title or value will fail.

```
$x('//input[@title="Email" or @value="Email"]')
> []
```

Place holder matching works but it's not unique.

```
$x('//input[@title="Email" or @value="Email" or @placeholder="Email"]')
> [​,
​]
```

I think we need to allow matching on arbitrary XPath selectors since there's no way to control the content of the webview.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the existing selector-matching code in the Objective-C iOS automation project and review issue #211's discussion; done requires resolving whether CSS or arbitrary XPath selectors are supported and distinguishing the two example inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, objective-c
Domain
mobile-dev, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.