Iframe click one button

Hi Team,

Below is html, i am not able to click on submit button using browser lib’s.
Id=challengeFrame >>> id=acssubmit
Please help here…i am blocked

Hi,

There not a lot of infos, but you have to Select the Frame prior to interact with it:

Select Frame    id=challengeframe
Click Element    //input[@id='acssubmit']/parent::td

And it’s strange you mention button where you have an input tag. That’s why I target the parent td, but this will depend of the actual content.

Don’t forget to Unselect Frame and manage focus on it.

Regards
Charlie

Dear I am working with browser library, can’t switch to selenium lib as whole project is based on browser lib.
Please suggest the solution in browser lib.

In this case you might need to use this:

iframe#challengeframe  >>> input#acssubmit

See example here:

https://marketsquare.github.io/robotframework-browser/Browser.html#Set%20Selector%20Prefix

Regards
Charlie

1 Like


Can anyone help with the solution here.
I am able to reach the element in iframe unfortunate click is getting intercepted by from …</> subtree.

Anyhelp will be appreciated.