Dropdown Handling In Appium Lib

Hi Team,

Could some one please help on handling dropdown in appium library
I dont see any direct keyword mentioned here.
I need a select a month value as 01 from the dropdown.
Tried clicking by giving xpaths with select tag and other combinations,unfortunately its nkt getting clicked.
Please suggest some keyword as we have in browser library.

@René. @falcon030

Hi Pankaj,
for my particular case I use library “ApplicationLibrary.DesktopLibrary” and as I have only “xpaths” I use:
Mouse Over Element ${ID}
Click A Point ${BTN-rel-coord-X} ${BTN-rel-coord-Y}

I don’t know if it works for your particular case

Hello,

Are we talking about Android or iOS?

Talking about web browser execution in android web.

Could you please help…i m stuck there.
It’s a custom dropdown with select tag having child tag as options
By using appium.click element or click at a point or click at cordinates …its not working.

@Mtest6835 If you’re testing a website on android, why don’t you use Browser Library and set things as userAgent" , "screenSize" , "viewport" and "hasTouch" to emulate a mobile device? See https://marketsquare.github.io/robotframework-browser/Browser.html#Get%20Device

1 Like

I have given that solution to client, but client demand is to run in mobile device only.

Hi @Mtest6835. Before click the element, how you manage the awaitility for the element to be enabled for click? Could you please post some logs on the failed step?

Could you try ??

AppiumLibrary.Wait Until Page Contains Element ${xpath_element} timeout=20s
AppiumLibrary.Click Element ${xpath_element}

and send the results?

1 Like