I am trying to select value from combo box on internet explorer using vba. When website gets opened, combo box has default value. I want to select last value from combo box. I inspected it's elements and found unique id. There is no option lists in browser's inspect element nor indext number but combo box has 8 lists showing.
I tried getelementbyid("Unique_Id").innertext = "Last_value" and i can see given value in combo box. But problem is when i select the same using mouse the next combo box gets refreshed ang gives relevant results based on value selection. After doing the same through vba, next combo boc didn't get refresh. It shows the results of default value selected in combox, not for the value i gave using innertext.
Please note that. I have tried .onfocus, .click, .selectedindex to get the results for the selected value but nothing worked.
Aucun commentaire:
Enregistrer un commentaire