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.

Keydown simulation

Tanna1Tanna1 Members
edited August 2013 in Sahi - Open Source
I am facing a problem with Sahi OpenSource. There is a case wherein i keyin some data into a textbox(pPolicyNo) and click randomly on the screen or press tab. A selectbox then appears. When i do the same with Sahi, the click is not making the selectbox appear. I am not sure if it is even clicking. The code i used is:

_click(_image("calendar.gif[1]")); //This clicks a calendar icon on the screen, a calendar opens and selectbox appears. With Sahi,the calendar opens but selectbox doesnt appear.

_click(_cell("NUMERO DE POLIZA")); //This is clicking on a random text. Again with Sahi the selectbox doesnt appear.

I also tried using tab:

_keyDown(_textbox("pPolicyNo"),9); _keyUp(_textbox("pPolicyNo"),9);

I even added wait after all the statements _wait(9000);

Nothing is making the selectbox appear.
Please help

Best Answer

Answers

  • Hi Tanna,
    Can you provide the URL of your testpage?

    Regards.
  • Soory, it is an internal app so cannot be accessed. I resolved the issue by using _blur(). Thanks anyways...
This discussion has been closed.