07-06-2010, 09:40 AM
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.ClickTry this?
|
Search WebTable?
|
|
07-06-2010, 09:40 AM
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.ClickTry this?
07-13-2010, 10:31 AM
(This post was last modified: 07-13-2010, 10:32 AM by sasmitakumari.)
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
07-14-2010, 12:32 AM
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.ClickBrian
07-19-2010, 03:35 PM
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.ClickI hope the above code will solve your problem |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| CyberArk CorePAS REST API to search for accounts | pramod | 0 | 1,237 |
06-29-2023, 03:11 PM Last Post: pramod |
|
| Search All Test scripts For a Function? | AndyBSG | 1 | 3,279 |
02-19-2015, 04:15 AM Last Post: supputuri |
|
| Search for a string in all the files under all subdirectory | Mahesh27 | 1 | 2,607 |
07-03-2013, 03:24 PM Last Post: Sathiya |
|
| Testing Search box | kriday | 1 | 2,958 |
06-26-2013, 08:51 AM Last Post: basanth27 |
|
| Search for a word in excel string | QAVA | 6 | 10,547 |
11-23-2012, 11:17 AM Last Post: vinod123 |
|