18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
iframe example
Hi,
Here is a good & simple example of page using iframe : http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
I am trying from the above page to record a script.
Goal :
Action 1 : Click on "click here" link to load "external5.htm" into the iframe located on the page.
Action 2 : Once it's loaded, there is a link called "clicking here" which i am trying to click but that link in the new iframe is not found.
My try without success :
_navigateTo("http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm"
;
_click(_link("clicking here"));
_click(_link("click here"));
_click(_link("clicking here"));
//_click(_link("clicking here[1]"));
_click(_link("clicking here"));
_click(_link("click here"));
_click(_link("clicking here"));
How can I make this work? It's not possible?
Here is a good & simple example of page using iframe : http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
I am trying from the above page to record a script.
Goal :
Action 1 : Click on "click here" link to load "external5.htm" into the iframe located on the page.
Action 2 : Once it's loaded, there is a link called "clicking here" which i am trying to click but that link in the new iframe is not found.
My try without success :
_navigateTo("http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm"
_click(_link("clicking here"));
_click(_link("click here"));
_click(_link("clicking here"));
//_click(_link("clicking here[1]"));
_click(_link("clicking here"));
_click(_link("click here"));
_click(_link("clicking here"));
How can I make this work? It's not possible?
Comments
Can you post the details of info tab in the controller.
Regards
Sumitra
This is the detail of my error report.
Starting script
_navigateTo("http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm"
_click(_link("clicking here")); at 6 mai 2011 12:46:18
_click(_link("clicking here")); at 6 mai 2011 12:46:18
_click(_link("click here")); at 6 mai 2011 12:46:19
_click(_link("click here")); at 6 mai 2011 12:46:19
ERROR
Step >_sahi._click(_sahi._link("clicking here"));< did not complete in 150 seconds. at 6 mai 2011 12:48:52
Stopping script
Tell me if I can provide you more info than this.
I was wondering if we could have somewhere a clear explanation or a video showing how to make Sahi works with Iframe?
I have seen so many post regarding iframe & still haven't find anyone who can make it work.
I have also tried the demo in sahi installation folder but it's still not helping me to make it work.
How come with that simple exemple of iframe on the website I have put in my first post, We can't make it work as we would like.
It's on IE, it's on same domain name. Isn't Sahi able to handle such case? What am i missing?
Thanks for your support again
IFrames and Frames generally work without a problem. You would notice that people run into problems mainly when they are switching domains.
In your case, there is indeed a bug in Sahi on link clicks on IE which have an href as "javascript:..". We have fixed this and will be available in the next release.
Meanwhile you can make your script run with this:
Regards,
Narayan
Again, Shurkiya Narayan for your help.
I think I replied to fast.
How to make this action work :
_mouseDown(_click(_link("click here")));
_click(_link("clicking here"));
because the action you suggest :
_mouseDown(_link("click here"))); => this actually don't click on the link. Nothing changes on the page when i do just this action.
_click(_link("clicking here"));
Do you see what I mean? Can you have a look again on this ? Thanks in advance.
Both case having the same issue.
Let's hope it's not a desperate case.
We revisited the problem and found that the bug was still unresolved. We have fixed the bug now. We will be making a new release tomorrow.
Regards,
Narayan
I confirm! It's working now with this simple example. We will try it now on our website using also iframe. We will keep u posted but thank you very much already for your help.
I confirm that it's also working on the case we were blocked on!
Shukrya again and we can finally close this post.