18 January 2026:


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.

Script is running fine in Chrome but not in firefox ?

gaveyomgaveyom Members
edited June 2013 in Sahi - Open Source
Hi Sahi Team/ All,

I have developed a script which is used to get all the links from a page and click each link 1 by 1.

Its working fine in chrome but when i run the same script in Firefox, it is displaying number of links is zero, .i.e no links in a page

I have used "install_sahi_v43_20130429.jar" this version, is there any problem with this version in getting links from page

Below is the script which i have used to get all the links in a page/ panel

var $collection_SubReport = _collect("_link", "/./", _in(_div($rightPanelName)));



Appreciate your co-operation in this regard.

Answers

  • gaveyomgaveyom Members
    Hi Pratyush_Tyto,

    can u hlep me out pls
  • Pratyush_TytoPratyush_Tyto Members
    edited June 2013
    Hi gaveyom,

    Using the same Sahi version as you, I have tried the following test script in Firefox 17 and Firefox 21 and they work correctly for me.
    var $collection = _collect("_link", "/./",_in(_div("testDiv")));
    _alert($collection.length);
    

    Which firefox version are you using?

    Regards.
  • gaveyomgaveyom Members
    Hi Pratyush,

    Im using "17.0.1" Firefox version, just now i have checked it, it is displaying links count as zero

    Below is the code which i have used.
    
    	var $collection_SubReport = _collect("_link", "/./", _in(_div($rightPanelName)));
    	_alert($collection_SubReport.length);
    
    
Sign In or Register to comment.