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.

"String required" JavaScript error when reading non XHR resource through ActiveXObject

jkronegg2jkronegg2 Members
edited February 2014 in Sahi - Open Source
I use Sahi v44_20130429 under Windows 7 with MSIE9 and got an issue in my application where non XHR ActiveXObject are created. A Javascript error "String required" is raised.
This error occurs in Sahi's htdocs/spr/concat.js on
new ActiveXObject(s,s1,s2,s3,s4,s5,s6)
because the parameters s1-s6 are null.

Answers

  • As a quickfix, I replaced this
    new ActiveXObject(s,s1,s2,s3,s4,s5,s6)
    
    by
    (s1==null && s2==null && s3==null && s4==null && s5==null && s2==null?new ActiveXObject(s):new ActiveXObject(s,s1,s2,s3,s4,s5,s6))
    

    Sahi Pro v v5100_20131202 does not have this issue because it checks for the number of provided parameters in a very elegant way.

    Maybe Sahi teams should build a new opensource version...
Sign In or Register to comment.