04-11-2018, 08:03 PM
We are testing an in-house web app. Most fields are WebEdit type, but the dropdowns are not conventional dropdowns. They are made up of WebElement type objects. For example, the "dropdown" contains the word Country and has a small down arrow (upsidedown triangle) next to it. It appears as a typical selector type dropdown, but using Object Spy I see every part of this dropdown is a WebElement. So I figured out if I used the .Click on the down arrow WebElement, I count the Country selection list to appear. This works.
When I try this:
and my Global data Country column contains UNITED STATES, this does not select UNITED STATES from the list. It does not error, but it does not select it. My selCountry is the WebElement of the selection list and if I select UNITED STATES manually and use Object Spy on the UNITED STATES selected, it is the WebElement selCountry and the innertext property is UNITED STATES. If I select another country, the innertext property is whatever I select. Why can I not select this at runtime?
Thank you.
When I try this:
Code:
Browser("MyBrowser").Page("MyPage").WebElement("selCountry").SetTOProperty "innertext", DataTable("Country", dtGlobalSheet)
and my Global data Country column contains UNITED STATES, this does not select UNITED STATES from the list. It does not error, but it does not select it. My selCountry is the WebElement of the selection list and if I select UNITED STATES manually and use Object Spy on the UNITED STATES selected, it is the WebElement selCountry and the innertext property is UNITED STATES. If I select another country, the innertext property is whatever I select. Why can I not select this at runtime?
Thank you.