Questions tagged [sahi]

Sahi is a web browser automation tool, used for writing functional test suites for web sites and web applications. It works in all modern browsers, allowing cross-browser testing.

Sahi is web automation and testing tool used for cross browser testing of complex web 2.0 and Ajax applications.

Sahi is especially suited for cross-browser/multi-browser testing of complex web 2.0 applications with lots of Ajax and dynamic content. Sahi works well in Agile development environments, enabling rapid automation and maintenance and easily integrating with build systems. Sahi saves time and effort with faster development, less maintenance and fast distributed playback. Sahi runs on any modern browser which supports JavaScript.

Sahi is available as an open source free product and as Sahi Pro, the commercial version.

Sahi is similar in concept to the more well established , although the two products work quite differently internally.

169 questions
1
vote
2 answers

SetUp/TearDown methods in sahi tests using junit framework

Is it possible to place the setup/teardown methods using JUnit framework in a single class (which would be my baseclass) so on test runs they methods are always called first/last? it would be in a similar way to which nunit tests can be…
jim7
  • 213
  • 1
  • 2
  • 6
1
vote
2 answers

Sahi Script, using variable in _assertEqual

I want to put variable to check if is Equal some text in the page, but in this way - doens't work: function check($value) { _assertEqual($value, " - VERSION", _getText(_heading1($value, " - VERSION"))); _click(_link("Edit[1]")); } check…
Rumen
  • 137
  • 6
  • 22
1
vote
0 answers

Mink and Sahi timing out on getContent

I've written a website scraper for use in a project. I'm controlling Firefox through Sahi using Mink to visit each site and interact with any elements where necessary. I've managed to get this working perfectly on all sites I've tried except for…
James
  • 739
  • 7
  • 13
1
vote
2 answers

Setting up Sahi, Behat & PhantomJS on Vagrant

I'm trying to set up automated testing with PhantomJS, Behat and Sahi on my vagrant machine. I'm getting the following output, when trying to run a test with behat: [Behat\SahiClient\Exception\ConnectionException] …
casraf
  • 21,085
  • 9
  • 56
  • 91
1
vote
2 answers

Sahi controller not working for https sites in Google chrome & IE

When i was trying to navigate to the https:// site from SAHI controller then it was giving some certificate error in chrome/IE browser and I have to click "Continue to this website (not recommended)." every time, and after clicking on that it shows…
BhushanK
  • 1,205
  • 6
  • 23
  • 39
1
vote
3 answers

SSL certificate error with SAHI

I use SAHI for automated testing. Sahi has an internal proxy I use to interact with server application. When I browse https websites, the proxy stores the sslcertificate. This certificate are self-signed and I have to import clicking on “Continue to…
Duccio Fabbri
  • 998
  • 1
  • 10
  • 21
1
vote
1 answer

Sahi: Try-catch can't handle 'The parameter passed to xyz was not found on the browser" error?

I run all my scripts through a .suite-file roughly in the following form: _include("variables.sah"); _include("functions.sah"); $a = 0; while($a<3) { try { _navigateTo($loginpage); login($user, $password); myFunction(); …
hiyosilver
  • 27
  • 5
1
vote
1 answer

Sahi: _include in if statements

I'm trying to run the following code as a sahi script: _include("initialScript.sah"); _include("secondScript.sah"); function currentTime(){ var $current = new Date(); var $hours = $current.getHours(); var $minutes =…
hiyosilver
  • 27
  • 5
1
vote
0 answers

Sahi automation tool issue

I am working with the sahi web automation tool.Recently i am facing one issue. i am testing https web site,during the ssl certificate acceptance process where install certificate button is not coming.if i add the respective site in trusted…
1
vote
2 answers

Write data to Excel sheet using Sahi Open Source

I am using Sahi Open Source. does anybody know how to write values to Excel Sheet using Sahi? i am trying to read data from web page and store it to excel sheet in a given cell. Please help.
Tanna
  • 35
  • 1
  • 1
  • 11
1
vote
1 answer

How to use a javascript ajax api in SAHI

We are using SAHI to do some benchmark tests. Currently they are collecting some times while exercising the application. These times are stored in a text file. We now have an app to collect and analyze this data. We have a restful API in .Net…
DanCaveman
  • 676
  • 1
  • 6
  • 22
1
vote
1 answer

Recording Java code in Sahi

I have installed Sahi Pro 5 on Windows 7. I am able to record my tests as .sah extension which is saved at sahi_pro/userdata/scripts. I am also able to play that file. As I'm familiar with Java, I want to record my tests as .java extension. How can…
Koly
  • 109
  • 2
  • 3
  • 10
1
vote
1 answer

Unable to launch Sahi Pro 5 on Windows 7 due to lack of valid license

I have installed Sahi Pro 5 on Windows 7. After installing successfully I double click on "Sahi Pro" desktop icon. A command prompt and Sahi Dashboard was appeared. But a pop up was appeared asking to add license. So, I need to add license.…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
1
vote
2 answers

Is it possible to test Responsive Web Design application with Sahi?

I'm testing a Responsive Web Design application now. I'm doing Manual testing on Firefox, Chrome and IE using Web Developer Tool. I like to automate the testing. Is it possible to automate Responsive Web Design with Sahi?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
1
vote
1 answer

Sahi case sensitive issue

I have come across and issue where different browsers return fields in different cases (upper, lower). For the most part the following method works for me: _click(_link("/Next/i")); However I have one item on the web page with brackets in the…
alex
  • 135
  • 3
  • 17
1 2
3
11 12