Forum Discussion

Vimalan's avatar
Vimalan
New Contributor
6 years ago

EvaluateXpath

HI,

I am Working On Web testing In Test Complete With Python Script.

1. I Have Saved My XPath In Unit1

2. I Created An Method In unit2.

3.In The Unit2 Method i Used EvaluateXPath method.

4.Now I need to Call The Unit1 Savd XPath In To The EvaluateXPath()

inside those braces.

 

5. Please Tell Me How To Call Method From One Unit To Another Unit inside Those Braces

 

unit1

def test():

a= "//input[@value='Login']"

 

Unit2

p = Sys.Browser("*").Page("*")

arr = p.EvaluateXPath(?..............Send Me the Answer For This Function)