I have created xpath on chrome as :
"//a[@href[contains(.,'moduleCode=MASTER')]]"This xpath is working fine for chromedriver. However, when the same Xpath is being executed for IEDriverServer it throws error as below:
org.openqa.selenium.ElementNotVisibleException: Cannot click on element (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
But another xpath:
"//a[contains(@href,'moduleCode=MASTER')]"works for both the ChromeDriver and IEDriverServer.
Not able to figure out why is there such difference in both the xpaths and why one of the xpath is not supported for IEDriverServer.
Capabilities used are as follows:
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true); capabilities.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, true); capabilities.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true); capabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, true);