Issue while clicking on hyperlink | Selenium Forum
M
Posted on 08/09/2015
Hi ,

Im trying to create a Java web application where i have to open an url and internally there are n number of hyperlink and i have to click on one of the urls so that the url is redirected to other page by the second url opens in same tab as opened initially no in other tab.

My issue here is i have used below code to open but actually the code is working till i click on second hyperlink but after the page is just loading forever...... just like below

driver.get("http://gvuhome.greatvalleyu.com:9010"); //main url
driver.findElement(By.xpath("//a[@href='http://gvuba802.greatvalleyu.com:8888/applicationNavigator/seamless']")).click(); // second urls



Here the second line is not working it is opening but no action happening in the page.

Can you please clarify

Regards,

Ramalakshmi

M
Replied on 08/09/2015

Try to make some other xpath aprt from href property


M
Replied on 09/09/2015

I have tried with By.xpath("//*[@class='btn btn-default hidden-xs']")).click();

it is able to redirect to next page but then the page shows some authentication error while performing in this way
Error :Something went wrong during the authentication process. Please try signing in again.


M
Replied on 11/09/2015

Please paste error