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.

Checkbox not checked in Chrome

djwdjw Members
edited November -1 in Sahi - Open Source
Chrome version 10.0.648.127
Sahi build 2011-02-03

Hi

I can record a script to click some checkboxes :

_click(_checkbox("centerContent:productSelectionTree:n-0-0-0:product"));
_click(_checkbox("centerContent:productSelectionTree:n-0-0-1:product"));
_click(_checkbox("centerContent:productSelectionTree:n-0-0-2:product"));

When I play the script back, the checkboxes don't get selected!

I tried this:

_check(_checkbox("centerContent:productSelectionTree:n-0-0-0:product"));
_check(_checkbox("centerContent:productSelectionTree:n-0-0-1:product"));
_check(_checkbox("centerContent:productSelectionTree:n-0-0-2:product"));


It doesn't work either.

I'm using Chrome version 10.0.648.127, Sahi build 2011-02-03.
Both versions work in Firefox 3.6.11, but neither in Chrome.

Thanks in advance.

David

Comments

  • Hello David,
    This issue is not fixed in the current build of Sahi.
    In the meanwhile, can you change line 636 in SAHI_HOME/htdocs/spr/concat.js to look like this and then run your script again? Check if this solves the problem.
    if (this.isSafariLike() && parseInt(this.getWebkitVersion()) <= 534) {
    
  • djwdjw Members
    Hi dkulkarni

    The fix seems to work for me, (after restarting the proxy) and it still works in firefox too, so no noticable side-effects. Thanks.
    Tell me if I'm wrong, but is this a problem that comes back with each new Chrome build?

    Thanks again,

    David
Sign In or Register to comment.