Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Select from the DropDown

    Posted Fri April 03, 2026 09:23 AM

    I wanted to select city from the dropdown, but when i tried with the select from comb box its doing nothing and even tried by sending window keys nothing seemed to be working . Are there any other ways? 



    ------------------------------
    singireddy supriya
    ------------------------------


  • 2.  RE: Select from the DropDown

    Posted Mon April 06, 2026 07:02 AM

    Is your application a Windows, Java, or web application?

    What command did you try to use?

    Could you provide a screenshot of the screen with the dropdown menu open so we can get a better view of the situation?



    ------------------------------
    Tarcio Alonso Mota
    Sr. Software Developer
    IBM
    ------------------------------



  • 3.  RE: Select from the DropDown

    Posted Mon April 06, 2026 09:59 AM

    Hi, I am trying to create a poc and found OrangeHRM site for that , below is the screenshot of the combobox,i tried using select Item in combo box activity.



    ------------------------------
    singireddy supriya
    ------------------------------



  • 4.  RE: Select from the DropDown

    Posted Mon April 06, 2026 10:07 AM

    This control is custom, it is not a native "<select>".
    You may need to select it manually by sending webClick and webSetKeys commands, or use the executeJavaScript command.



    ------------------------------
    Tarcio Alonso Mota
    Sr. Software Developer
    IBM
    ------------------------------



  • 5.  RE: Select from the DropDown

    Posted Mon April 06, 2026 10:12 AM

    tried using webclick and websetkeys but didn't work..it was able to click the dropdown but unable to select from it websetkeys is executing but i dont see anything happening on the site.



    ------------------------------
    singireddy supriya
    ------------------------------



  • 6.  RE: Select from the DropDown

    Posted Mon April 06, 2026 10:50 AM

    Just an example:

    defVar --name browser --type Browser
    webStart --name web --type "Chrome" --userprofilepreferences "AutomationOptimized" --downloadpath "C:\\Users\\Administrator\\AppData\\Local\\IBM Robotic Process Automation\\downloads" browser=value
    webNavigate --url "https://opensource-demo.orangehrmlive.com/web/index.php/auth/login"
    webWaitElement --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div/div[1]/div/div[2]/div[2]/form/div[1]/div/div[2]/input"

    webSet --value Admin --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div/div[1]/div/div[2]/div[2]/form/div[1]/div/div[2]/input" --simulatehuman
    webSet --value admin123 --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div/div[1]/div/div[2]/div[2]/form/div[2]/div/div[2]/input" --simulatehuman
    webClick --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div/div[1]/div/div[2]/div[2]/form/div[3]/button"
    webWaitElement --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div[1]/aside/nav/div[2]/ul/li[1]/a"

    webClick --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div[1]/aside/nav/div[2]/ul/li[1]/a"
    webWaitElement --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div[2]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[2]/div/div[2]/div"
    webClick --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div[2]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[2]/div/div[2]/div" --simulatehuman
    webFocus --selector "XPath" --xpath "//*[@id=\"app\"]/div[1]/div[2]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[2]/div/div[2]/div/div[2]"
    sendKeys --keys "{e}"
    sendKeys --keys "{ENTER}"

    webClose --name web --leavebrowseropen



    ------------------------------
    Tarcio Alonso Mota
    Sr. Software Developer
    IBM
    ------------------------------



  • 7.  RE: Select from the DropDown

    Posted Mon April 06, 2026 11:27 AM

    Hey Thank you, It worked .. i didn't use webfocus that was the reason it didn't work earlier.



    ------------------------------
    singireddy supriya
    ------------------------------



  • 8.  RE: Select from the DropDown

    Posted Mon April 06, 2026 11:31 AM

    Awesome!



    ------------------------------
    Tarcio Alonso Mota
    Sr. Software Developer
    IBM
    ------------------------------