Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Thursday, 23 July 2015

We can capture index property at run time.

make the index value as a variable and pass a range of values to that variable for the object description.

for intIndex=0 to 3
    Browser().Page().Button("name:=some name","index:="&intIndex).click
    If Browser().Page("CustPage").Exist Then
       Exit For
    End If
Next


this logic to find the required webtable with actual column count etc ...


so your code click to all the buttons and check the page title ...now you know the which index takes you to what screen.

so once you capture these values dynamically ...can use to automate the functionality to these 4 pages ...have a common function to any environment to capture index values first then use them to navigate to required screen .. 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.