Skip to content

Speed of selection #2

@p14n

Description

@p14n

Hi Nic,

Page attached, running this code:

    WebDriver driver = new ChromeDriver();
    RedsniffWebDriverTester browser = new RedsniffWebDriverTester(driver);
    browser.goTo("file:///Users/p14n/dev/jhc/redsniff/CreateEvent.html");
    MFinder ownerSelectContainer = list().that(hasAttribute("data-ref", "users-list"));
    browser.clickOn(listItem().that(hasText("DART1")).withinA(ownerSelectContainer));
    driver.quit();

Will give you this warning:
!!!WARNING!!! has data-ref "users-list" would throw UnoptimizedNotPossibleException
!!!WARNING!!! took 7.552 - to filter 87 elements down to 1 - has data-ref "users-list"

Any pointers or suggestions on either optimising the selection or where to look to put together a PR gratefully received.

Cheers,
Dean
createevent.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions