Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search WebTable?
#11
Solved: 10 Years, 9 Months, 2 Weeks ago
Code:
row = Browser("").Page("").WebTable("").GetRowWithCellText("GD APRS Nine,Internet,Jun 18 2010 4:57PM", 2, 7)

Set View = Browser("").Page("").WebTable("").ChildItem(3, 7, "Link", 0)

View.Click


Try this?
Reply
#12
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi,

Can u provide snap shot of your webtable(part of it- with all columns in it with few rows"), which will help me to provide you sample code how to click on the link using DP?

Sasmita
Reply
#13
Solved: 10 Years, 9 Months, 2 Weeks ago
Thanks,

For all the help!

I was able to use the below code to search a web table for a specific Name(Andrew APRS Fox) and a specific Access Type(Internet)for the current date and once found click on the link in the 7th column for that specific request. Here is the code in case someone else has a simular issue.

Again Thanks for all the Help!

Code:
Dim objTable, intRow
Today = MonthName(Month(Now),True)&" "&Day(Now)&" "&Year(Now)

Set objTable = Browser("").Page("").WebTable("")
Rcount = 1
do until Rcount = objTable.RowCount +1
If objTable.GetCellData(Rcount, 1) = "Andrew APRS Fox" Then
If objTable.GetCellData(Rcount, 3) = "Internet" Then
If Mid(objTable.GetCellData(Rcount, 5),11,1) = " "
Then
covdate = Left(Today,10)
Else
covdate = Left(Today, 11)
End If
If covdate = Today Then
If objTable.GetCellData(Rcount, 6) = "PENDING APPROVAL " Then
Exit do
End If
End If
End If
End If
Rcount = Rcount + 1
loop
If Rcount = objTable.RowCount +1Then
msgbox "No Matching Records Found"
End If
Set View = Browser("").Page("").WebTable("").ChildItem(Rcount, 7, "Link", 0)

View.Click
Thanks,
Brian
Reply
#14
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi Brian,

Code:
row = Browser("").Page("").WebTable("").GetRowWithCellText("GD APRS Nine,Internet,Jun 18 2010 4:57PM")

Set View = Browser("").Page("").WebTable("").ChildItem(row,7,"Link", 0)

View.Click

I hope the above code will solve your problem
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CyberArk CorePAS REST API to search for accounts pramod 0 559 06-29-2023, 03:11 PM
Last Post: pramod
  Search All Test scripts For a Function? AndyBSG 1 2,582 02-19-2015, 04:15 AM
Last Post: supputuri
  Search for a string in all the files under all subdirectory Mahesh27 1 2,050 07-03-2013, 03:24 PM
Last Post: Sathiya
  Testing Search box kriday 1 2,369 06-26-2013, 08:51 AM
Last Post: basanth27
  Search for a word in excel string QAVA 6 8,962 11-23-2012, 11:17 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)