Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop-down list display
#1
Solved: 11 Years, 4 Months ago Question 
Hi,

There is a requirement to test, that a drop down list should be visible to the end user when he/she clicks on the arrow icon to expand the list.

I am not sure how should i proceed. When I recorded, QTP does not capture the Click event for the drop-down. It only captures when you have selected certain value from the drop-down.

I thought that when I will click the Drop-down list, then i will use some property which govern the display of the drop down when selected, to verify whether the list is visible or not.

I am unable to figure out how to do it using QTP. Any help would be highly appreciated.
Reply
#2
Solved: 11 Years, 4 Months ago
Hi..

If you want to know drop down list is visible to end user..
u can use..

Code:
list = Browser(..).Page(..).WebList(..).Exist

if Drop Down list available on page it returns "True" other wise It returns "False".

then check

Code:
If list = true then
  test pass
else
  test fail..
Hope this solves u r issue..
Please let me know if u have any doubts..

Thanx
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Drag and drop issue excellentpawan123 0 2,746 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drop down list class is a link thotamurali 2 4,196 08-22-2014, 05:48 PM
Last Post: thotamurali
  Selecting values from drop down using QTP. prempujaripati 2 46,768 06-26-2014, 06:06 PM
Last Post: rasmirani
  issue in drag and drop excellentpawan123 0 2,332 05-15-2014, 04:36 PM
Last Post: excellentpawan123
  Drop Down menu loses value ATestani 2 2,570 01-28-2014, 10:04 PM
Last Post: ATestani

Forum Jump:


Users browsing this thread: 1 Guest(s)