Automating Select Element with Multiple Options

Hi Team,

How can I automate a select box with multiple options?

Can somebody help me automate selecting two options i.e. Volvo and Audi from the select element in this URL - W3Schools Tryit Editor

image

Hi @Mantri,
You can follow below steps to select multiple options.

Step 1 - use send keys and select Control in Keys option
image

Steps 2 - Use Select List By text
image

Steps 3 - Use Select List By text
image

image

1 Like

HI @bhuvan

This solution worked without using the Control send keys.

Earlier I was using Click. But now, I am using SelectList by Text which is enabling to select multiple values.

good solution, Thanks @bhuvan

1 Like