Selecting dropdown in WebDriverJs

后端 未结 15 1135
星月不相逢
星月不相逢 2020-12-29 07:48

I have a dropdown box that I would like to select a value using WebDriverJS. I\'ve looked at the user guide below and could not find out how to do it

15条回答
  •  庸人自扰
    2020-12-29 07:51

    This is not actually clicking the option, but it does in fact select it.

    1. Find select element
    2. Click select element
    3. Type option text into select element using sendKeys()
    4. Click select element

提交回复
热议问题