I'm having a issue with a SelectTag on a WebPage , My script work on some SelectTag but not this one.
This is the script i'm using. The first part is working , I found the value in the selectTag but the "option.Selected=true;" seem to do nothing. Can someone have ever face this situation.
public static void SetOptionInList (string value1, SelectTag SelectObject) { int counter; IList<OptionTag> optionlist = SelectObject.FindDescendants<OptionTag>(); counter = optionlist.Count; foreach(OptionTag option in optionlist) { if(option.InnerText==value1) { Report.Info("Values",value1+" Found"); option.Selected=true; break; } } }Operating System : Windows
Browser : Chrome