Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different Type of Dropdown Selector
#1
Not Solved
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:

 
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.
Reply


Messages In This Thread
Different Type of Dropdown Selector - by zunebuggy - 04-11-2018, 08:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cannot use the type method on object and submit is not working jove1776 5 8,813 01-27-2015, 10:08 PM
Last Post: Parke
  Not able to click text inside the grid dropdown szkapoo 6 4,628 12-20-2014, 09:43 PM
Last Post: supputuri
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,268 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  How to import .xlsx file type to QTP qtped 3 6,654 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 7,122 02-04-2014, 08:14 AM
Last Post: QAlearningQTP

Forum Jump:


Users browsing this thread: 2 Guest(s)