Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with a dynamic parameter
#2
Solved: 11 Years, 6 Months, 3 Weeks ago
Well, after so many tries, finally I did something to start to fix my problem:

Quote:set ex= CreateObject("Excel.Application")
Set a=ex.Workbooks.open("c:\Book3.xls")
Set b=a.worksheets("Sheet1")

dim fieldcheck, branch1, label

label = "Branch(three-digit)"

i=1

While (label <> fieldcheck)
fieldcheck=b.Cells(i, "A").value
If label = fieldcheck Then
branch1=b.Cells(i, "B").value
End If
i = i+1
Wend

Browser("...").Page("...").WebEdit("branch").Set branch1

I used a variable to store the label value on web site, then in while I search for the row that has the same value than label.

Now I need one more thing, The label that I have to compare has a value that changes everytime (i.e. "TAN No. xxx", where xxx is the varying number)

I don't know how to do that, I was thinking something about checkpoint that field. Or maybe a way to read that field on the site and assign the value to a variable and compare.
Reply


Messages In This Thread
help with a dynamic parameter - by guilherme_br - 03-18-2009, 01:04 AM
RE: help with a dynamic parameter - by guilherme_br - 03-20-2009, 09:59 PM
RE: help with a dynamic parameter - by sepgs2004 - 03-27-2009, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Parameter passing problem Qtpuser1 1 2,921 04-18-2014, 06:23 AM
Last Post: kgovadav
  Parameter bistritapcv 0 2,403 04-02-2013, 09:10 PM
Last Post: bistritapcv
  Parameter iteration bistritapcv 1 3,495 03-28-2013, 10:40 AM
Last Post: Sathiya
Question Add parameter to Data table during run time switoo 1 3,093 12-06-2012, 02:37 AM
Last Post: frebuffi
  Parameter values VS Environmental Variables Brian.Osborne 1 2,433 10-11-2012, 01:47 PM
Last Post: harishshenoy

Forum Jump:


Users browsing this thread: 1 Guest(s)