WhiteHatBox
Share Page
Following(0)
Partner(s)
Alex111

How to capture element inside iFrame

ReplyThanks 2021/01/22 07:19:14 0 0

Can someone tell me how to get an element inside an iframe? I want to add a click event on the "Add to cart" button on the Homedepot website. It is inside an Iframe and I can't even detect it.


Ann Tong
2021/01/22 11:17:15

Which version of browse do you use, the Chrome or the Geckofx?

If you use the Geckofx version, you can use the Select Control function to fill in the iframe parameters yourself. If you use the Chrome version, you need to use the SwitchToIframe commend.


Alex111
2021/01/25 05:11:48
Hello, sorry for the delay. I'm using Chrome. I tried to use GeckoFx's "Select Control" tool, but it doesn't identify the button. I tried the command "SwitchToIframe" that you mentioned, it asks for the name, ID or index of the Iframe, but the Iframe has only class.
Ann Tong
2021/01/27 14:54:41

If you do not have name and ID, you can fill the index only. Index represents how many iframs it is on. You need to fill numbers.

The minimum value is 0.

Alex111
2021/01/28 10:29:11
Unfortunately, it`s not working.
Ann Tong
2021/01/29 11:50:38
5 # Alex111 2021/1/28 10:29:11
Unfortunately, it`s not working.

We have replied to you in the ticket.

Please check it.

Thanks.

<< < 1> >>
VerifyCode
Advanced Option