Skip to content

Executing FindElement or FindElements using free style locator, throws NoSuchElementException #16

@gravity-api

Description

@gravity-api

Reproduce

[DataTestMethod]
[DataRow("//div")]
public void AnyLocator(string locator)
{
    // setup
    var element = new MockWebDriver().FindElement(By.XPath(locator));

    // assertion
    Assert.IsTrue(element != null);
}

Expected: return positive element
Actual: throw NoSuchElementException

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions