I have a web page in which the first drop down box selects a search type (user id, last name, first name, id number), then the second drop has search parameters (contains, is, is not, starts with, equals, etc). The first drop down controls what appears in the second drop down. For example, select id number in the first, and the second drop down only has equals, whereas if you select last name, the second drop down has contains, is, is not, starts with. I can use autohotkey to select an item in the first drop down, but the contents of the second drop down aren't updating. I tried the fireevent("onchange") but it doesn't seem to have any impact. Any ideas?
Code: Select all
wb.document.getElementsByClassName("advancedSearchField")[0].selectedIndex := 9 ; Switch to User ID
wb.document.getElementsByClassName("advancedSearchField")[0].FireEvent("OnChange")
wb.document.getElementsByClassName("advancedSearchOperator")[0].selectedIndex := 0 ; Switch to Is