Module 13-exercises | Selenium Forum
M
Posted on 25/08/2016
when iam working with exercises in module13, i encountered below issue, can you please help me.

Iam able to open combo but selected value is not retained back in combo.

i tried with same piece of code in gmail-create account and able to select value from combo and retain them back in combo.

M
Replied on 25/08/2016

you might have to use other way like action class.


M
Replied on 26/08/2016

Action class means........

Actions combo=new Actions(driver);

Right??


M
Replied on 26/08/2016

yes, thats correct.

but try this way first (it might not work but try it)
http://stackoverflow.com/questions/20138761/how-to-select-a-dropdown-value-in-selenium-webdriver-using-java
https://loadfocus.com/blog/2016/06/13/how-to-select-a-dropdown-in-selenium-webdriver-using-java/


M
Replied on 26/08/2016

Both your referred links suggest to use "Select" class. but in this scenario, we cannot use "Select" class

Responsive image

M
Replied on 26/08/2016

try this way

to click on dropdown menu
and then click on the option you want to select.