xpath Locators are not identified in Safari 10 macOS Sierra for Selenium Webdriver 3.0.1

I am working on Selenium Automation of Web Application on Windows and Mac Platform.

macOS Sierra Version 10.12.1

Safari Version 10.0.1(12602.2.14.0.7)


The xpath Locators created using Safari inspect feature is not getting identified during Test run. Its throwing NoSuchElementFound Exception everytime. However same locators are working on Firefox and Chrome in Windows Platform. Most of the Locators are xpath.


Please suggest if this a known issue in Safari, or any workaround to run the test on Safari with xpath locators.

Replies

Have the same issue with safari driver, not only xpath css too ,
May 16 looks like support is super responsive here😉

I am having the same problem too. I'm using Safari Technology Preview and my locator strategy (xpath) is working fine in Google Chrome, Edge, Firefox, Safari in iOS iPhone X simulator and Chrome in Samsung Galaxy android emulator. What is going on with Safari?