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.

How to select a value from drop down

sWAPNILsWAPNIL Members
edited April 2009 in Sahi - Open Source
I'm trying to automate form submittion process of an application.
The form has a drown down (ExtJS object).

The script works fine while recording but fails if replayed.

The script is as follows:

_click(_image(224)); // Click on drop down icon
_click(_spandiv("Electric[1]")); // Select a value from drop down.

The problem is that, the clicking on the drop down icon doesn't open the drop down list.
Hence no value is selected and the script fails.

Another problem is, the id generated for the drop down icon is dynamic.

Can anybody please let me know what to do?

Comments

  • narayannarayan Administrators
    Swapnil,

    Using the index for an image may not be the best way to use to identify the image. If you drop me an email at narayan at sahi . co . in, I can help you handle extjs elements better.

    Regards,
    Narayan
  • Even am also facing the same problem for ExtsJs object drop down issue
Sign In or Register to comment.