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

By.XPath broken in latest #24

Closed
richard-browne opened this issue Jul 3, 2014 · 4 comments
Closed

By.XPath broken in latest #24

richard-browne opened this issue Jul 3, 2014 · 4 comments

Comments

@richard-browne
Copy link

I just updated to SimpleBrowser.0.5.45.0 & SimpleBrowser.WebDriver.0.5.30. Now By.XPath is broken. Example:

    {
        var by = By.XPath("//input[contains(@id, 'foo')]");
        return browser.FindElement(by);
    }

Exception:

System.ArgumentNullException : Value cannot be null.
Parameter name: node

at System.Xml.XPath.Extensions.XPathSelectElements(XNode node, String expression, IXmlNamespaceResolver resolver)
at SimpleBrowser.WebDriver.WebElement.FindElementsByXPath(String xpath)
at SimpleBrowser.WebDriver.WebElement.FindElementByXPath(String xpath)
at OpenQA.Selenium.By.<>c__DisplayClasse.b__c(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at SimpleBrowser.WebDriver.SimpleBrowserDriver.FindElement(By by)

@Teun
Copy link
Contributor

Teun commented Jul 3, 2014

Owch. On all documents or something specific? Can you provide a full
breaking example?

2014-07-03 9:57 GMT+02:00 richard-browne notifications@github.com:

I just updated to SimpleBrowser.0.5.45.0 & SimpleBrowser.WebDriver.0.5.30.
Now By.XPath is broken. Example:

{
    var by = By.XPath("//input[contains(@id, 'foo')]");
    return browser.FindElement(by);
}

Exception:

System.ArgumentNullException : Value cannot be null.
Parameter name: node

at System.Xml.XPath.Extensions.XPathSelectElements(XNode node, String
expression, IXmlNamespaceResolver resolver)
at SimpleBrowser.WebDriver.WebElement.FindElementsByXPath(String xpath)
at SimpleBrowser.WebDriver.WebElement.FindElementByXPath(String xpath)
at OpenQA.Selenium.By.<>c__DisplayClasse.b__c(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at SimpleBrowser.WebDriver.SimpleBrowserDriver.FindElement(By by)


Reply to this email directly or view it on GitHub
#24.

@Teun
Copy link
Contributor

Teun commented Aug 26, 2014

I just looked into this and could easily reproduce. Sorry that I left it so long. Will fix.

@Teun
Copy link
Contributor

Teun commented Aug 27, 2014

It's fixed and pushed to nuget. Sorry that I didn't take the report more seriously when submitted.

@Teun Teun closed this as completed Aug 27, 2014
@richard-browne
Copy link
Author

No probs. Thanks for fixing.

On 28 Aug 2014, at 1:28 am, Teun notifications@github.com wrote:

It's fixed and pushed to nuget. Sorry that I didn't take the report more seriously when submitted.


Reply to this email directly or view it on GitHub.

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

2 participants