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

Relative target using CSS selector should build a target using a CSS selector #97

Closed
Galad opened this issue Jan 15, 2019 · 0 comments
Closed

Comments

@Galad
Copy link
Owner

Galad commented Jan 15, 2019

Currently a relative target resolve the first target and then use it as the search context.
If both targets use CSS selectors, (By.Class, Id, CssSelector, Name, etc.), it is possible to create an optimized target that use a single CSS selector.

For instance, given the targets:

var item = Target.The("item").LocatedBy(By.ClassName("item"));
var name = Target.The("name").LocatedBy(By.ClassName("name"));
var itemName = name.RelativeTo(item).

The itemName should use the CSS selector ".item .name".

@Galad Galad mentioned this issue Feb 9, 2019
@Galad Galad closed this as completed Feb 9, 2019
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