Setting value in combobox with option groups |
Setting value in combobox with option groups |
JonWayn1970 |
Apr 6 2021, 04:36 AM
Post
#1
|
Group: Members Posts: 2 Joined: 6-April 21 Member No.: 27,882 |
I am trying to automate a website. I need to select an item in a select element that has optgroup tags in it. Usually i would encounter select elements without optgroup and i would set the selectedItem property to a number corresponding to the value i want. In this case however, there are option groups. How is it done. Thank you
|
pandy |
Apr 6 2021, 07:48 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
I don't think the optgroups matter. But maybe I misunderstand.
|
JonWayn1970 |
Apr 6 2021, 11:47 AM
Post
#3
|
Group: Members Posts: 2 Joined: 6-April 21 Member No.: 27,882 |
|
pandy |
Apr 6 2021, 01:08 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
Oh, good then.
|
Lo-Fi Version | Time is now: 11th May 2024 - 10:34 AM |