You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed, when I removed ":visible" it worked. Exception was:
Exception encountered:
OpenQA.Selenium.WebDriverException: Unexpected error. Syntax error, unrecognized expression: visible
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptInternal(String script, Boolean async, Object[] args) at SizSelCsZzz.Other.ByExternalScript.FindElements(ISearchContext context) in c:\src\SizSelCsZzz\SizSelCsZzz\Other\ByExternalScript.cs:line 35 at SizSelCsZzz.Other.ByExternalScript.FindElement(ISearchContext context) in c:\src\SizSelCsZzz\SizSelCsZzz\Other\ByExternalScript.cs:line 47 at SizSelCsZzz.WebDriverExtensions.WaitForElementEx(ISearchContext node, By condition, Nullable1 maxWaitMS, Nullable`1 waitIntervalMS) in c:\src\SizSelCsZzz\SizSelCsZzz\WebDriverExtensions.cs:line 39
at SizSelCsZzz.WebDriverExtensions.WaitForElement(ISearchContext node, By condition) in c:\src\SizSelCsZzz\SizSelCsZzz\WebDriverExtensions.cs:line 16
The text was updated successfully, but these errors were encountered:
The reason this didn't work is because BySizzle doesn't support :visible, but JQuery does. Not sure if there is a better way to deal with this... Maybe BySizzle should be deprecated.
The following code:
browser.WaitForElement(BySizzle.CssSelector("input#js-login-username:visible")).ClearThenSendKeys(Account.Username);
Failed, when I removed ":visible" it worked. Exception was:
Exception encountered:
OpenQA.Selenium.WebDriverException: Unexpected error. Syntax error, unrecognized expression: visible
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptInternal(String script, Boolean async, Object[] args) at SizSelCsZzz.Other.ByExternalScript.FindElements(ISearchContext context) in c:\src\SizSelCsZzz\SizSelCsZzz\Other\ByExternalScript.cs:line 35 at SizSelCsZzz.Other.ByExternalScript.FindElement(ISearchContext context) in c:\src\SizSelCsZzz\SizSelCsZzz\Other\ByExternalScript.cs:line 47 at SizSelCsZzz.WebDriverExtensions.WaitForElementEx(ISearchContext node, By condition, Nullable
1 maxWaitMS, Nullable`1 waitIntervalMS) in c:\src\SizSelCsZzz\SizSelCsZzz\WebDriverExtensions.cs:line 39at SizSelCsZzz.WebDriverExtensions.WaitForElement(ISearchContext node, By condition) in c:\src\SizSelCsZzz\SizSelCsZzz\WebDriverExtensions.cs:line 16
The text was updated successfully, but these errors were encountered: