Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find which value is having link and which are all not having in Web table.
#1
Not Solved
How to find which value is having link and which are all not having in Web table.
Reply
#2
Not Solved
generally you can use the htmltag to check this. However, having a screenshot of the application which will cover both the cases link and non-link would helpful to provide more inputs from our side.
Thanks,
SUpputuri
Reply
#3
Not Solved
Supputuri:

I assume you are asking how can you tell determine how may links are in a webtable.

I am not certain whose code I modified. Sorry.
Code:
''// Find_all_childobjects_of_a_webtable
''// do not know how this code will react if a cell has more than one object
''// for example a cell contains webedit and a link

Function objects_count_in_Page(Req_obj)
    Dim obj
    Set obj=Description.Create
    obj("micclass").Value=Req_obj
    Set x=Browser("name:="&browserName).Page("title:="&browserName).WebTable("name:="& tableName).ChildObjects(obj)
    Req_obj_count= x.count()
    print Req_obj&"s"&" in WebPage : "&Req_obj_count
    objects_count_in_Page = Req_obj_count
End Function

' If any web objects are missing, add them to the array
webObjects_arr = array("Link", "WebButton", "WebCheckBox", "WebEdit","WebElement", "WebTable", "Image", "WebList", "WebRadio", "WebRadioGroup")
' loop through the array to count how many of each type appears in the webtable
For i = 0 to ubound(webObjects_arr)
    Call objects_count_in_Page(webObjects_arr(i))
Next

hth,

Parke
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,491 10-01-2019, 10:44 AM
Last Post: shilpi952
  Child Object Not able to identified in Web Menu Link noor 0 1,857 01-21-2018, 04:44 PM
Last Post: noor
  unable to rowcount in web table manoj84monu 1 2,900 06-13-2016, 04:46 PM
Last Post: Anu1234
  Fetching values from a web table qapandit 7 9,255 05-30-2014, 02:32 PM
Last Post: nistalaramesh
Smile find out of spelling error in Web application deveshbhatt29 1 2,207 01-10-2014, 05:10 PM
Last Post: Maheep_bhambri

Forum Jump:


Users browsing this thread: 1 Guest(s)