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.

click on button is not working

sowmyasowmya Members
edited November -1 in Sahi - Open Source
Hello,

I am testing application in IE8. when I playback the script to click on Search button in the application sahi is giving TypeError:"Object Does not support this Property or method".Script is as follows

_setValue(_textbox("asrn"), "11-005604");
_click(_button("Search"));

Can anybody help me out please.

Comments

  • SumitraSumitra Members
    Hi Soumya,

    Could you try doing these steps manually.

    Also, Ctrl+Hover on "Search" and use what is displayed in the Accessor field.

    Regards
    Sumitra
  • sowmyasowmya Members
    Thanks for the reply.

    As u told I have done those steps manually it is working properly and giving the result and also instead of _click(_button("Search")) if i add _keyPress(_textbox("asrn"), [13,13]); it works.

    when Ctrl+hover I am getting _button("Search") in Accessor field.


    Thanks,
    Sowmya
  • SumitraSumitra Members
    Hi Sowmya,

    Can you tell me what do u get on the Accessor field when you Ctrl+Hover on Search with IE and Firefox

    Regards
    Sumitra
  • sowmyasowmya Members
    Hello Sumitra

    When I Ctrl+Hover on search button I am getting _button("Search") in IE but Since Firefox does not support our application I am unable to get when Ctrl+Hover on search in Accessor field.

    Thanks,
    Sowmya
  • SumitraSumitra Members
    Hi sowmya,

    Try using this:

    _click(_xy(_button("Search"), 5, 5));

    Regards
    Sumitra
  • sowmyasowmya Members
    Hello Sumitra,

    I have tried using _click(_xy(_button("Search"), 5, 5)); but again i am getting the same error.

    "_click(_xy(_button("Search"), 5, 5));
    TypeError: Object doesn't support this property or method
    No trace available
    "

    Thanks,
    Sowmya
  • sowmyasowmya Members
    Hello,

    I have Google chrome in my system but it is not displaying in dashboard. Can anybody suggest how to configure it.

    Thanks,
    Sowmya
  • SumitraSumitra Members
    Hi Sowmya,

    Please create a new forum post for Google Chrome issue.

    Kindly follow the steps below:

    Start Sahi>>Click on Configure on Dashboard>>Mention the path of Google Chrome in "<path>"

    <browserType> 
            <name>chrome</name>  
            <displayName>Chrome</displayName>
            <icon>chrome.png</icon>
            <path>open -n -a "Google Chrome.app"</path>  
            <options>--args --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking</options>  
            <processName>"Google Chrome"</processName> 
            <capacity>5</capacity>
            <force>true</force>  
        </browserType>
    </browserTypes>
    

    Restart Sahi.

    Regards
    Sumitra
Sign In or Register to comment.