How to select a value from a WebElement’s dropdown list.
Question ID: 108389

I am using object.innerText method, it is selecting the value from dropdown list but it is not unable as the next field still grey out.

Browser("Example").Page("Example").WebElement("Select category").Object.innerText = "XYZ"

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on May 9, 2018 6:52 pm
Answers (1)
Private answer

Do you need to navigate to the next field to commit the value? I've done the following before to make a field become enabled. After selecting the value, try following up with a key input, such as a keyboard Tab to the next object:

Browser(''Example'').Page(''Example'').WebElement(''Select category'').Type micTab

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on October 29, 2018 1:54 pm

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top