Jump to content
Sign in to follow this  
Autobeginer

Dropdown List values

Recommended Posts

Autobeginer

Hi everybody,

I am new working with AutoIT and my work as QA Analyst requires automating some testing for the company products.

I already wrote some scripts to install products and validate it, but I have several dropdown lists and I need to validate the values are correct and I don't know how.

The window doesn't show title in the AutoIt window info. When I move the cursor (up and down) the rest of the control and window values are the same. The only data that change is the position

and size.

Any help, I will appreciatePosted Image

Thank you

Share this post


Link to post
Share on other sites
kaotkbliss

if it's an autoit gui you created, you can use guictrlread to set the data to a variable, then you can use that variable for your comparison.

ex.

$mylist=guictrlcreatecmbo("",width, height, x, y)

guictrlsetdata($mylist, "option1|option2|option3","option1")

other code here

$select=guictrlread($mylist)

$select then becomes what is selected in $mylist


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites
Autobeginer

if it's an autoit gui you created, you can use guictrlread to set the data to a variable, then you can use that variable for your comparison.

ex.

$mylist=guictrlcreatecmbo("",width, height, x, y)

guictrlsetdata($mylist, "option1|option2|option3","option1")

other code here

$select=guictrlread($mylist)

$select then becomes what is selected in $mylist

Hi,

I did not create the GUI, Developers created it and I have to test it.

When I am installing the product and creating the settings I am able to open the dropdonw list and pick and option but I can read the value to validate it.

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.