Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To click on the Link in a webtable
#1
Solved: 11 Years, 4 Months ago
Hi All,

The scenario is like I need to select a value from dropdown and dependinh on the selection the number od rows in the webtable changes. Example for "value1" in combobox,the number of rows dispalyed is 3, in that table i need to select a link. similarly for second slection "value2",the number of rows changes again.

I tried adding the webtable in the object repository. since the webtable is changing everytime so it is not recognizing it.It is doing only for the scenario it has been added.

Please help how to proceed in this case.
Reply
#2
Solved: 11 Years, 4 Months ago
Try out some descriptive programming. Make a object of the link with expected properties & locate on page & proceed the work.
Reply
#3
Solved: 11 Years, 4 Months ago
Hi sweety,

You can use descriptive programming, and for getting total row count u use "Items count" in GetROProperty and according to that you just use a For loop till Items count and get the third row by Indexing
For ex:Code look like
Code:
Set obj = Description.create()
..
set count = Browse.("x").page.("x").weblist(x).getroproperty("Items count")
For i = 0 to count-1
if i = 3
Browse.("x").page.("x").weblist(x).select ("#") & i
end if
Next

Hope this will help you to solve your problem, please let me know if you need some information.

Thanks
Mahesh
Reply
#4
Solved: 11 Years, 4 Months ago
Hi sweety,

pls ans some below questions.
what do u mean by "since the webtable is changing everytime so it is not recognizing it"
changing which property,

what is the Text of the link you want to click,

->you can create an discriptive object of the link and directly find it in webtable abd below syntax
browser(--).page().fram().webTable().link(your descriptive object).Exists
no need to use an for loop to locate it.

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,688 04-29-2017, 04:53 PM
Last Post: kowshik
Question Webtable contains cell contains two links, how to click on link srinivassure 9 53,490 07-30-2016, 03:41 PM
Last Post: Akshay
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,403 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How to click a radio button inside a webtable silpavinod 9 13,669 01-24-2013, 04:09 PM
Last Post: vishalu.vs
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,917 12-22-2012, 04:22 AM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 1 Guest(s)