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
0
votes
1 answer

Equivalent Java code of Sahi script: _openWindow("http://www.google.com","defaultSahiPopup",[360,640]);

I have modified "controller.mode=sahi" at sahi.properties file as "controller.mode=java" for recording Java code in Sahi Web Test Automation Tool. I want to record my tests using with Resolution of browser (for example, 360x640). During recording…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
0
votes
3 answers

How to maximize browser using Sahi with java

I'm using Sahi Java Driver. My Java code with Sahi is running well. When tests are being executed the browser (in my case Firefox) is not maximized. The snippet of my Sahi Java code as below: String browserType = "firefox"; Browser browser = new…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
0
votes
1 answer

How to uninstall Sahi Pro on Windows 7 ?

I have install Sahi Pro by using "install_sahi_pro_v452_20130205.jar" on Windows 7. I have decided to uninstall it and to install Sahi Pro 5. I went to Control Panel --> Uninstall a Program to uninstall Sahi Pro 4. But I did not find Sahi Pro on the…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
0
votes
1 answer

Does Sahi handle nested else-if statements?

What is the syntax for if-else-if statements in Sahi script? The following failed with a syntax error: function caseSwitch($htype){ if($htype==22){ type22(); } else{ if($htype==5){ type5(); } //I have…
kyoob
  • 499
  • 5
  • 23
0
votes
1 answer

How to find object by multiple attributes in sahi for ruby

In Sahi controller, this works fine _div({className:"/class.*/",id:"id"}) But I tried below in sahi for ruby, it always returns false. @browser.div('{className:"/class.*/",id:"id"}').exists?
lippea
  • 31
  • 4
0
votes
1 answer

Is there a way to handle popups during playback using Sahi Pro without each popup opening its own controller window?

I'm testing a list of links using Sahi Pro, and each link opens a popup window in which I have to assert that a few elements are available. I'm able to use _closeWindow to get rid of each popup, but I've noticed that every time a new popup loads,…
kyoob
  • 499
  • 5
  • 23
0
votes
1 answer

Trouble using Sahi function _setValue() on an HTML5 textbox that utilizes validation data attributes

I've tried inserting text into a textbox on my HTML5 login page but it isn't working. The controller finds the element okay and when the script is played back it even logs the case as a success, but the text is not being populated. Here is the…
kyoob
  • 499
  • 5
  • 23
0
votes
1 answer

How do I set a cell value in an Excel file using Sahi Pro _getExcel API?

So here is my script: //Get a handle to the Excel sheet var $db = _getExcel("C:\\Users\\datasource.xlsx","Sheet1"); //Get Data var $rs=$db.getData(); //Set a random number to append to this group of usernames var $rand=…
kyoob
  • 499
  • 5
  • 23
0
votes
1 answer

sahi and table operations

For a given table, I'd like to get the below total number of rows able to iterate over by row and column using the Java Driver. I tried the option mentioned here with no luck. Below is the HTML for table
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

Testing with dual UI's

I have a browser based test program for testing a browser based application. This means that I need to record sequences that alternately manipulate the test program and then the application to check that it reacts correctly, so that I can perform…
Roger
  • 151
  • 7
0
votes
1 answer

Sahi + PhantomJS fails when testing local PHP web app with behat

I'm having an issue testing a locally hosted web application with a behat+sahi+phantomjs set up. I have run the full suite with just behat+sahi+chrome which works fine I have also tested a small sample behat test against a live stie that works…
user945747
0
votes
2 answers

Sahi OS Controller doesn't open with Chrome Version 24.0.1312.52 m

I have updated my chrome to Version 24.0.1312.52 m. Sahi OS controller doesn't open with the updated Chrome. I have checked the same with Alt, Alt+Ctrl, turned off popup blocker but still no luck. I checked the same on another machine and the same…
0
votes
1 answer

Is it possible to configure Sahi to support OnMouseEnter events?

I am trying to test a site with a drop down menu which is expanded by on onmouseenter event. I know this event is IE only, but I am unable to get the event to record/playback using Sahi in IE8 or IE9. In the Sahi config there is a file…
infojolt
  • 5,244
  • 3
  • 40
  • 82
0
votes
1 answer

How to record a dropdown item which opens when clicked on the image?

In my application I have logout link as it is in gmail account. I have to click on a dropdown image to see the logout link, this is not recording when I am trying to record using sahi tool and I am not able to record the browse and upload event…
0
votes
1 answer

Step the url should match with Behat

I'm testing the step of Mink: Then the url should match "pattern" My url is some like "/test/34kUñlj" and this is a _blank target. This means that when I click on a link, then it open a new windows and the url is "/test/34kUñlj". I'm using sahi…
Biruwon
  • 394
  • 1
  • 4
  • 18