Click Link that is off screen to the right.

1 Answer 78 Views
Elements Test Execution
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Adrian asked on 08 Apr 2022, 05:42 AM

Hello,

I need to click a link that is off the screen to the right.  Is within a frame within the main browser.

Test identifies the element as it waits for it to exist but refuses to click it.

Is there any way to do this?

Thanks

Adrian

Elena
Telerik team
commented on 11 Apr 2022, 12:40 PM

Hi Adrian, 

Do you mean that the link is not visible on the screen? Or the outcome of the test run is that the click is not performed? 

What is the failure listed in the results? Does it indicate that the element is not found?

What is the outcome of the test run if you execute it with enabled annotations?

Please, elaborate some additional details on the case to help in analyzing this.

Thanks,
Elena

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
commented on 11 Apr 2022, 11:33 PM

Hi Elena,

Thanks for your help, I've worked out the issue.

I needed to invoke a Javascript click rather than a normal mouse click.

Cheers

Adrian

1 Answer, 1 is accepted

Sort by
0
Accepted
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
answered on 11 Apr 2022, 11:36 PM
It wasn't the fact it couldn't find the link, I needed to invoke a Javascript click rather than a normal mouse click.
Elena
Telerik team
commented on 12 Apr 2022, 11:02 AM

Hi Adrian, 

Thank you for following up on the thread. I am pleased to know you sorted out the issue on your own. 

Actually, this would have been my suggestion as well - to uncheck the 'SimualteRealClick' option of the click step to invoke the JavaScript click onto the element. Though, I wanted to know if there is any other issue or it is only the fact that the element is not actually visible in the browser and cannot be scrolled to.

Anyways, thank you for your cooperation once again.

Regards,
Elena

Tags
Elements Test Execution
Asked by
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Adrian
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or