Selenium fetches URL but wont click href - no error in console

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Selenium fetches URL but wont click href - no error in console

Jonathan Clark

I am running Selenium to test a specific area of my companies webpage. What I am trying to do seems relatively easy in theory, but I have ran into several obstacles. Can someone please tell me why the URL is opening but won't select the "Services" Hyperlink?

Below is a snippet of the code:

"Path to IE/IEDriverServer_64.exe");

WebDriver driver = new InternetExplorerDriver();

DesiredCapabilities caps = DesiredCapabilities.internetExplorer();


navItems']/ul[@class='ups-navItems_primary']/li[@class='ups-navMenu ups- 

As I stated earlier, in theory this should open up UPS's homepage and select the "Services" tab on the top right of the page. Instead it just goes to homepage and stays there.

I have driver.findElement(By.xpath........); in this example but I have tried findElement( & partialLinkText

Can anyone give me a solution besides update to latest version(s)?

Metadata: Windows 10, JAVA 10, Internet Explorer (Unfortunately) 11.4.

Thanks in advance!



You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit
For more options, visit