Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DP with variables
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi, i am new in this forum, I am from Argentina, sory if you don´t understand completely what i write.

I am using DP programming cause a web page have identical objects. I read that the correct form is using the parameter index or location, i chose index.
Descripting an object, is not posible to use variables as a description of the object am i right?

Example working:

Code:
aux=Environment.Value("ActionIteration")-7
    If (aux=0) Then
        Browser("Browser").Page("Page_4").Link("name:=Unicef -","html tag:=A","text:=Unicef -","Index:=0").Click
    End If

    If (aux=1) Then
        Browser("Browser").Page("Page_4").Link("name:=Unicef -","html tag:=A","text:=Unicef -","Index:=1").Click
    End If

Example NOT working:
Code:
aux=Environment.Value("ActionIteration")-7
Browser("Browser").Page("Page_4").Link("name:=Unicef -","html tag:=A","text:=Unicef -","Index:=aux").Click

The 2nd way is much better cause i can add new rows in the dataTable without touching the code, but it doesn´t work for me, what i am doing wrong? Is there any way to do what i am looking for?

Thanks
Reply


Messages In This Thread
Using DP with variables - by pjeigenn - 07-16-2010, 02:35 AM
RE: Using DP with variables - by Saket - 07-16-2010, 09:24 AM
RE: Using DP with variables - by sasmitakumari - 07-16-2010, 03:55 PM
RE: Using DP with variables - by Arun Prakash - 07-16-2010, 06:59 PM
RE: Using DP with variables - by sreekanth chilam - 07-16-2010, 11:18 PM
RE: Using DP with variables - by pjeigenn - 07-16-2010, 11:31 PM
RE: Using DP with variables - by Saket - 07-19-2010, 07:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Function That Creates WebLink Variables Eitel13 3 1,494 07-17-2018, 03:25 PM
Last Post: Ankur
  Array as User-Defined Environment Variables Arena 3 4,268 04-16-2012, 09:19 AM
Last Post: sshukla12
  programming to use different external file of environment variables bundfromnj 1 3,972 01-19-2012, 05:32 PM
Last Post: SteveS
  How to store all output values in different variables Jyobtech 4 4,745 10-13-2010, 11:23 AM
Last Post: KavitaPriyaCR
  Why Constant Variables while connecting to DB mona 4 5,142 07-27-2009, 02:16 PM
Last Post: mona

Forum Jump:


Users browsing this thread: 3 Guest(s)