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.
Open new tab in browser
Hi, I am running a scenario where I am logged in facebook, after successful login I wanted to go to a specific page but its not working..The error is :
Command execution time limit reached: `_sahi._navigateTo(mywebsitelink)`
Thanks in advance.
Command execution time limit reached: `_sahi._navigateTo(mywebsitelink)`
Thanks in advance.
Comments
Which version of Sahi and what browser are you using?
Can you let me know what is that specific page you are trying to navigate to?
Also, post the sample script.
Regards
Sumitra
Sahi Version : 3.5
Browser : firefox (6.0)
I am try to go qa(dot)actibva(dot)com
Sample script :
Given I am on "/" /* Facebook Page*/
And Then I fill in "email" with "xyz(at)gmail(dot)com"
And Then I fill in "pass" with "xxxxxx"
When I press "Log"
Then I wait for "5" second /*this is my function*/
Then I go to "qa(dot)actibva(dot)com" /* i can't post url becoz of newuser restriction so i am writing like this */
Actually anything I write after logging in facebook page it not work. So i was wondering that after log in i can open a new tab and go to my desired site and then handle reast of the test case.
I also wanted to know about one more thing, I was making a test case to check that when user is login in my website via facebook or twitter. But the problem is when i click on facebook and twtter images it open in new small window and my test fails at that point. I wanted to ask that it such type of test cases are possible to handle in sahi or not?
Above test-case is also tested for www(dot)actibva(dot)com
Thanks alot for the help.
Instead of you trying to open a new tab and then navigating to desired site, you can first login to facebook and navigate to desired site and again navigate back to facebook site.
For second question: If its a pop-up then Sahi automatically handles it.
If its not a pop-up then you can add Sahi script to perform OK or cancel action.
Regards
Sumitra
Thanks alot for quick response.
Actually I am first login in facebook and then navigating to desired site, but its not working.
Given I am on "/" /* Facebook Page*/
And Then I fill in "email" with "xyz(at)gmail(dot)com"
And Then I fill in "pass" with "xxxxxx"
When I press "Log"
Then I wait for "5" second /*this is my function*/
Then I go to "qa(dot)actibva(dot)com" /* i can't post url becoz of newuser restriction so i am writing like this */
The problem is the last 2 lines in above script not running , i don't know whats the reason behind it.
Regarding Second question :
I checked that its not popup ..so how do i write sahi script for it,? ..I would appreciate if you provide any tutorial link for this.
Thanks again.
I tried this on my machine and it works fine for me. Here is the Script:
It takes some time to navigate to "http://qa.actibva.com" .
Are you getting any error ?
Here are the Documents to learn how to write Sahi scripts:
http://sahi.co.in/w/sahi-scripting-basics
http://sahi.co.in/w/sahi-script-and-javascript
Regards
Sumitra