Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testobject at Runtime
#1
Not Solved
Can anyone give me an advice on how to create a Testobject at runtime?

I'd like to create a "Link" Testobject wich is not situated in the object repository. I want to generate it at runtime using the description stored in the excel sheet.

Tanks and cheers,
Giama
Reply
#2
Not Solved
Hi,
I think you can try this.

Initialize the excel object DOM and pass the link name as the parameter to the action.

Code:
Set excel = createobject("excel.application")
    excel.visible=false
    Set obook=excel.workbooks.open("C:\test.xls")
    Set osheet = obook.worksheets(1)
             LinkName=osheet.cells (2,13).value
              
Set oDesc = Description.Create()
oDesc("name").Value = "{Link Name}"
Browser("Browser").Page("Page").Link(oDesc).Click
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)