Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help combing code
#1
Not Solved
Since I cant seem to get my Wait Prorerty to work without getting a Warning message, I thought I might try a different aproac.

I need to first wait for the Dialog box to appear or see if I get a Link (moreinfo) indicating that i didnt find data.

I cant seem though to figure out how to combine both of the following:


Code:
If Not Browser("Wisdom").Dialog("File Download").Exist(1) Then
        Do Until Browser("Wisdom").Dialog("File Download").GetROProperty("visible")=True or i = 60
        i=i+1
        Loop
End If

If Not Browser("Wisdom").Dialog("File Download").Exist(1) Then
    Do until Not Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("MoreInfo").Exist(0) or i=10       ' Checking this for 10 times for data.
        With Browser("Wisdom").Page("Wisdom IA").Frame("parent")
            .Link("MoreInfo").Click
            .Link("here").Click
                If .Link("name:="& ReportName, "Visible:=True", "abs_x:="& absX, "abs_y:="& absY).Exist(0) Then
                    Call GoBackToReportName (ReportName, absX, absY)
                Else
                    Call GoBackToGroupNameReportName (GroupName, ReportName, absX, absY)
                End If
                i=i+1
        End with
    Loop
End If


Can anyone help me combine these two If statements into one that does both "If"s ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)