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.

couldn't focus when setValue is call in sahi_20100817

beesmanbeesman Members
edited August 2010 in Sahi - Open Source
in order version when _setValue is called , the _focus is called in _setValue
and the web page will scroll

i find FF will scroll and IE won't scroll at all in sahi_20100817

Comments

  • concat.js
    Sahi.prototype.setValue = function (el, val) {
        this.checkNull(el, "_setValue", 1);
        this.checkVisible(el);
        this._focus(el);   //this code was added by beesman
    //    try{
    //        this.getWindow(el).focus();
    //    }catch(e){}
        this.simulateEvent(el, "focus");
        
        val = "" + val;
        .........
    }
    
Sign In or Register to comment.