Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting an iTem from the WebCombo box
#1
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
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
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
does the above code works.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)