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
While finding an element with number string eg: driver.FindElement(By.Name("2")).Click();
is giving and error as below:
Error Message:
OpenQA.Selenium.WebDriverException : Selector strategy 'css selector' with value '*[name ="\32 "]' is not supported
Stack Trace:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)
at OpenQA.Selenium.WebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.<.ctor>b__11_0(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at OpenQA.Selenium.WebDriver.FindElement(By by)
at FlaSelOne.POApprove.POApproveTest() in D:\KitePack\POC\CS\FlaUISelenium\FlaSelOne\POApprove.cs:line 48
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
I tried with the escape sequence as well but had no luck.
The Inspect screenshot -
The text was updated successfully, but these errors were encountered:
Hi,
While finding an element with number string eg: driver.FindElement(By.Name("2")).Click();
is giving and error as below:
Error Message:
OpenQA.Selenium.WebDriverException : Selector strategy 'css selector' with value '*[name ="\32 "]' is not supported
Stack Trace:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary
2 parameters) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters)at OpenQA.Selenium.WebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.<.ctor>b__11_0(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at OpenQA.Selenium.WebDriver.FindElement(By by)
at FlaSelOne.POApprove.POApproveTest() in D:\KitePack\POC\CS\FlaUISelenium\FlaSelOne\POApprove.cs:line 48
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
I tried with the escape sequence as well but had no luck.
The Inspect screenshot -
The text was updated successfully, but these errors were encountered: