rushikesh
8 years agoContributor
How to use an argument while calling object using image repository.
Below is my code.
function Test1()
{
ImageRepository.IDRowMillInch.HoleFeaCondCopy.Click()
}
when executed, a click is performed on HoleFeaCondCopy object present in Image Repository.
How to use the above function for other objects present in Image Repository as well.
Below code I am using .
function Test1(Row)
{
ImageRepository.IDRowMillInch.Row.Click()
}
function Run()
{
Test1("HoleFeaCondCopy")
}
Following error is observed when call function run.
"Cannot read property 'Click' of undefined"