Module13--capturing partial links in web page | Selenium Forum
M
Posted on 18/08/2016
when tried to capture links on left hand side of "https://in.yahoo.com/", there are 17 links (including both visible & not visible)

(please go through screenshot 1 where there are invisible links)

when tried to capture title of these links using for loop, below error is displayed for the link that is in invisible mode and unable to proceed further

(please go through screenshot 2 for error details)

M
Replied on 19/08/2016

[quote:1y90kse1]below error is displayed for the link that is in invisible mode and unable to proceed further[/quote:1y90kse1]
put a if statement

if((specificlink.isdisplayed)){
click on the link

}


M
Replied on 19/08/2016

After adding "if" condition, it worked fine but for the last link, below error message is displayed

Exception in thread "main" org.openqa.selenium.WebDriverException: Element is not clickable at point (242.60000610351562, 12.600006103515625). Other element would receive the click: <a data-rapid_p="4" href="https://cricket.yahoo.com" data-ylk="t5:sports;slk:sports;" class="Td(n)! Td(u)!:h Fz(13px) C(#fff)!"></a>

Responsive image

M
Replied on 19/08/2016

try this

http://stackoverflow.com/questions/11908249/debugging-element-is-not-clickable-at-point-error