1

Click Link href=http://www.tays.fi gives the error message:

"Link with locator 'href=http://www.tays.fi' not found."

But the item does exist on my page:

 < a class="ot-landingpage__link" href="http://www.tays.fi" id="yui_patched_v3_11_0_1_1562143051415_173">www.tays.fi< / a >

What am I missing here? Any ideas, please?

2 Answers 2

1

The problem with your code is that href= is not a valid locator prefix.

Click link by default will search the id, name, and href of all anchor elements, so you can give the href without the prefix:

Click link  http://www.tays.fi
Sign up to request clarification or add additional context in comments.

1 Comment

wait until page contains www.tays.fi <br/> scroll element into view www.tays.fi Click Link www.tays.fi ----> "Element with locator 'www.tays.fi' not found"
0

Click Link expects a locator, not the href.

In your case

Click Link    id=yui_patched_v3_11_0_1_1562143051415_173

OR

Click Link    class=ot-landingpage__link

See documentation

http://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Click%20Link

3 Comments

"When using the default locator strategy, links are searched using id, name, href and the link text."
"Link with locator 'id=yui_patched_v3_11_0_1_1562143051415_173' not found."
seems that the yui_patched is generated. Try the class one If class=ot.. does not work, try xpath=a//[@class="ot"]...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.