WebDriver does not support new line for Xpath

Confirmed Issue #7918883 • Assigned to Bo C.


Truong P.
Jun 17, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

The error message displays when find element by xpath with new line. Please run the following code

System.setProperty("webdriver.edge.driver", "MicrosoftWebDriver.exe");
WebDriver driver = new EdgeDriver();
driver.get("xpath.html"); // Please download xpath.html in attached file
driver.manage().timeouts().pageLoadTimeout(100, TimeUnit.SECONDS);
WebElement e = driver.findElement(By.xpath("//input[@value=\"Access your account\n\"]"));

Here is an exception

Exception in thread "main" org.openqa.selenium.NoSuchElementException: No such element (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 20 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
System info: host: 'LGDN13488-W10D1', ip: '', os.name: 'Windows NT (unknown)', os.arch: 'x86', os.version: '6.2', java.version: '1.7.0_05'
*** Element info: {Using=xpath, value=//input[@value="Access your account

Note: This issue doesn’t occur on Chrome

Windows Insider Build 14366
Webdriver 10.0.14366.0


1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

  • This issue occurs when working with new tab “/t”

  • Hi Brad,

    Could you tell me know the status of this issue?

    Best regards,

  • Microsoft Edge Team

    Changed Assigned To to “Mara P.”

    Changed Assigned To to “Rico M.”

    Changed Assigned To from “Rico M.” to “Travis L.”

    Changed Assigned To from “Travis L.” to “Thomas M.”

    Changed Assigned To from “Thomas M.” to “Eugene V.”

    Changed Status to “Confirmed”

  • I am getting this issue in webdriver 14393,10586 and insiders build 14959. I see this issue when searching for any thing using xpath. Hoever, the timeouts that I get are always 200 seconds to 500 seconds

  • Microsoft Edge Team

    Changed Assigned To from “Eugene V.” to “Bo C.”

You need to sign in to your Microsoft account to add a comment.

Sign in