Skip to content

Consider alternate API for locators to get out of nested () hell #77

@alechenninger

Description

@alechenninger

Just brainstorming. Kind of inspired by Google's new Truth library (which removes parenthesis hell from matchers in test assertions). Maybe something like...

button().id("foo").css(".bar").htmlTag("a");
// as opposed to
button(By.chained(By.id("foo"), By.css("bar"), By.htmlTag("a")));

// customer locators
button(new BySalesforce()).section("Foo").label("bar");

Not sure how much of a real concern this is

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions