Could not find element using XPath locator for Selenium Edge Driver instance 2.47.1

Getting the following exception Message:

Exception in thread "main" org.openqa.selenium.WebDriverException: ????tor not implemented (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 16 milliseconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'WIN-CMEFNAVR643', ip: '192.168.3.254', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_51'
Driver info: org.openqa.selenium.edge.EdgeDriver
Capabilities [{acceptSslCerts=true, browserVersion=20.10240.16384.0, platformVersion=10, browserName=MicrosoftEdge, takesScreenshot=true, pageLoadStrategy=normal, takesElementScreenshot=true, platformName=windows, platform=ANY}]
Session ID: 65DB54C4-7689-4443-A6C7-DD95943B38B8
*** Element info: {Using=xpath, value=//input[@id='username']}
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
    at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:445)
    at org.openqa.selenium.By$ByXPath.findElement(By.java:358)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:340)
    at edge_demo.Test.main(Test.java:26)

      

Selenium 2.47.1 doesn't support edge driver to find element using xpath ??? Please provide you with a solution for this?

+3


source to share


2 answers


Finding XPath items is not supported in the original Microsoft Edge driver implementation. Unfortunately, there is no documentation on this limitation; it is derived from experimentation and private discussions with members of the Microsoft Edge development team. It is intended to be implemented in an updated release, but of course no schedule can be specified for this update.



+7


source


Support for location elements using XPath was added in Build 10547 and is available in November Public Release 25 (Build 10586, EdgeHTML version 13).



See the WebDriver Status page to see the status of automation features in Microsoft Edge. There are also a number of functions that are not implemented that can bite you.

+2


source







All Articles