Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting an iTem from the WebCombo box
#1
Not Solved
In my application, the webcomboBox would appear as webelement of the grid, but in clicking on the cell, the webelement would appear as "WebList", hence not able to choose a particular item from the web list. The code is provided as
Code:
Browser("XXXX").Page("XXXX").WebElement("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_rc_0_11").Click
Browser("XXXX").Page("XXXX").WebList("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_vl","name:=select").Select "Orange"

The QTP script runs without any problem, but the item is selected from the list
Reply
#2
Not Solved
The QTP script runs without any problem, but the item is selected from the list
should it select ot Not?
(12-04-2009, 05:13 PM)nil Wrote: The QTP script runs without any problem, but the item is selected from the list
should it select ot Not?


Code:
Browser("XXXX").Page("XXXX").WebElement("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_rc_0_11").Click
Browser("XXXX").Page("XXXX").sync
Browser("XXXX").Page("XXXX").WebList("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_vl","name:=select").Select "Orange"
Check the above code

Thanks

~NileshTongue
Reply
#3
Not Solved
as you have the statement to select a value from weblist, QTP will be selecting the value passed
I guess you want to retrieve the value from the grid.

if this is a grid your webelemnt must be within a webtable -
if so try with getcelldate once you identify the row

alternately if you want to get the selected value from weblist use getroproperty("value") or "Selection"

Reply
#4
Not Solved
does the above code works.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to select item within WebMenu learnasugo 4 8,136 10-11-2016, 03:35 PM
Last Post: learnasugo
  Searching for and selecting row in Datawindow zsl0009 0 2,810 08-04-2015, 01:02 AM
Last Post: zsl0009
  Problem selecting in a dropdown menu during playback. qemls29 9 13,043 07-28-2015, 05:44 PM
Last Post: Sharan
  Selecting Link Magad 1 2,824 11-07-2014, 03:56 AM
Last Post: PrateepKaraval
  selecting values from the dropdown webelement poojaarora014 3 18,030 04-22-2014, 12:12 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)