Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
navigateTo();
kanchan9987
Members
I am new to Sahi and using it with Gauge Framework.
I am trying to do browser.navigateTo(url);,it navigates to that url and is still on that page. Below is the stackTrace:
Testing started at 11:55 ...
Sahi properties file = \BDD\WEBUI\sahi\config\sahi.properties
Sahi user properties file = \BDD\WEBUI\sahi\userdata\config\userdata.properties
>>>> Sahi OS v5.0 started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
Reading browser types from: \BDD\WEBUI\sahi\userdata\config\browser_types.xml
Returning Default Browser : chrome
Nov 11, 2019 11:55:24 AM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRemoteFetch
INFO: No SSL Client Cert specified
Nov 11, 2019 11:55:24 AM net.sf.sahi.test.ProcessHelper execute
Nov 11, 2019 11:55:25 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
INFO: PIDs: [5500, 7048, 8464, 15908, 5300, 19416, 17216]; 1011 ms
panic:
non-positive interval for NewTicker
goroutine 19 [running]:
time.NewTicker(0xf7359400, 0xffffffff, 0x1159c400)
/usr/local/go/src/time/tick.go:
23 +0x1ba
github.com/getgauge/html-report/listener.(*GaugeListener).sendPings(0x11664de0)
/tmp/src/github.com/getgauge/html-report/listener/gaugeListener.go:134 +0x178
created by github.com/getgauge/html-report/listener.(*GaugeListener).processMessages
/tmp/src/github.com/getgauge/html-report/listener/gaugeListener.go:96 +0x2ae
Specifications: 1 executed 0 passed 1 failed 0 skipped
Scenarios: 1 executed 0 passed 1 failed 0 skipped
Total time taken: 2m38.799s
Updates are available. Run `gauge update -c` for more info.
Process finished with exit code
Here is the report:
net.sf.sahi.client.BrowserUnresponsiveException : did not complete in 150 seconds.
net.sf.sahi.client.Browser.executeStep(Browser.java:323)
net.sf.sahi.client.Browser.executeStep(Browser.java:293)
net.sf.sahi.client.Browser.execute(Browser.java:262)
net.sf.sahi.client.Browser.fetch(Browser.java:708)
net.sf.sahi.client.Browser.navigateTo(Browser.java:193)
net.sf.sahi.client.Browser.navigateTo(Browser.java:181)
Login.goToURL(Login.java:21)
I am trying to do browser.navigateTo(url);,it navigates to that url and is still on that page. Below is the stackTrace:
Testing started at 11:55 ...
Sahi properties file = \BDD\WEBUI\sahi\config\sahi.properties
Sahi user properties file = \BDD\WEBUI\sahi\userdata\config\userdata.properties
>>>> Sahi OS v5.0 started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
Reading browser types from: \BDD\WEBUI\sahi\userdata\config\browser_types.xml
Returning Default Browser : chrome
Nov 11, 2019 11:55:24 AM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRemoteFetch
INFO: No SSL Client Cert specified
Nov 11, 2019 11:55:24 AM net.sf.sahi.test.ProcessHelper execute
Nov 11, 2019 11:55:25 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
INFO: PIDs: [5500, 7048, 8464, 15908, 5300, 19416, 17216]; 1011 ms
panic:
non-positive interval for NewTicker
goroutine 19 [running]:
time.NewTicker(0xf7359400, 0xffffffff, 0x1159c400)
/usr/local/go/src/time/tick.go:
23 +0x1ba
github.com/getgauge/html-report/listener.(*GaugeListener).sendPings(0x11664de0)
/tmp/src/github.com/getgauge/html-report/listener/gaugeListener.go:134 +0x178
created by github.com/getgauge/html-report/listener.(*GaugeListener).processMessages
/tmp/src/github.com/getgauge/html-report/listener/gaugeListener.go:96 +0x2ae
Specifications: 1 executed 0 passed 1 failed 0 skipped
Scenarios: 1 executed 0 passed 1 failed 0 skipped
Total time taken: 2m38.799s
Updates are available. Run `gauge update -c` for more info.
Process finished with exit code
Here is the report:
net.sf.sahi.client.BrowserUnresponsiveException : did not complete in 150 seconds.
net.sf.sahi.client.Browser.executeStep(Browser.java:323)
net.sf.sahi.client.Browser.executeStep(Browser.java:293)
net.sf.sahi.client.Browser.execute(Browser.java:262)
net.sf.sahi.client.Browser.fetch(Browser.java:708)
net.sf.sahi.client.Browser.navigateTo(Browser.java:193)
net.sf.sahi.client.Browser.navigateTo(Browser.java:181)
Login.goToURL(Login.java:21)
Comments
public void goToURL() {
// You can specify the browser you want to run the tests on.
// browserType can take any value defined in
// sahi/userdata/config/browser_types.xml
// Create a browser and open it
browser = BrowserFactory.getBrowser();
browser.navigateTo(url);//,true);
getPPN();
//browser.close();
}
Please reply as soon as possible