Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to set value for a drop down box
#7
Not Solved
https://www.learnqtp.com/forums/Thread-N...p-down-box

Code:
'Updated by test maintenance run
'Updated by test maintenance run
' "Delete Assessment" is one of several selection choices in the dripdown Box. It does not register when you click to execute, QTP stops, Using the Maintenance option just made it worse. In this script we are selecting to delete three records created using the dropdown option , with "delete" confirmation, and returning to View All Tasks to select next record.
'
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").WebElement("Delete Assessment").Click
'Browser("Home - Protection Database_2").Page("Home - Protection Database_3").WbfGrid("ctl00_ctl13_g_3dbb10b0_eb3b_425a_8e1c_37b4a58c9ca6_ctl00_ctl00_GridViewTasks_gridView_ctl02_ctl00_t").ClickCell
'Browser("Home - Protection Database_2").Page("Home - Protection Database_3").WbfGrid("ctl00_ctl13_g_3dbb10b0_eb3b_425a_8e1c_37b4a58c9ca6_ctl00_ctl00_GridViewTasks_gridView_ctl02_ctl00_t").ClickCell
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Delete").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Close").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_5").Link("View All Tasks").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").WebElement("Delete Assessment").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Delete").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Close").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_5").Link("View All Tasks").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").WebElement("Delete Assessment").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Delete").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_4").WebButton("Close").Click
Browser("Home - Protection Database_2").Page("Home - Protection Database_5").Link("View All Tasks").Click
'
'Wait(3)
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").Link("Home").Click
'
Wait(3)
Browser("Home - Protection Database_2").Page("Home - Protection Database_2").Link("View All Tasks").Click
Wait(3)
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").Link("My Tasks").Click
Wait(3)
Browser("Home - Protection Database_2").Page("Home - Protection Database_3").Link("View All Tasks").Click
Wait(3)
Reply


Messages In This Thread
RE: Not able to set value for a drop down box - by EldonKing - 02-17-2011, 11:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to set value in application web edit box tanuj dewangan 4 3,478 07-29-2016, 03:58 PM
Last Post: harshadevadas
  Drag and drop issue excellentpawan123 0 2,600 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drop down list class is a link thotamurali 2 3,985 08-22-2014, 05:48 PM
Last Post: thotamurali
  Selecting values from drop down using QTP. prempujaripati 2 46,384 06-26-2014, 06:06 PM
Last Post: rasmirani
  issue in drag and drop excellentpawan123 0 2,208 05-15-2014, 04:36 PM
Last Post: excellentpawan123

Forum Jump:


Users browsing this thread: 1 Guest(s)