Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tabbed browsing: Unable to handle child tabs
#5
Not Solved
OK, here is the code:
Code:
Dim BrowserTab_1, BrowserTab_2

'The following assignment is just a preparation for future use
Set BrowserTab_1 = Browser("Web1")
Set BrowserTab_2 = Browser("Web2")


If Not BrowserTab_2.Page("Import").Exist Then
    Reporter.ReportEvent micWarning, "Detecting Import page", "Page not found"
    If Not BrowserTab_1.Page("Home Page").Exist Then
        Reporter.ReportEvent micFail, "Open Import Page", "Home page not found"
        ExitTest
    Else
        BrowserTab_1.Page("Columbus Home Page").Link("Import").Click
        Reporter.ReportEvent micDone, "Open Import Page", "Executed"
        Wait(120)
    End If
Else
    Reporter.ReportEvent micDone, "Detecting Import page", "Page found: "+ BrowserTab_2.Page("Import").GetROProperty("url")
End If


If Not BrowserTab_2.Page("Import").Exist  Then
    Reporter.ReportEvent micFail, "Open Import Page", "Unable to open Import page"
    ExitTest
End If
'Actions for Import-page here


So the test fails within the latest If-statement. If this conditional statement was not present, the test would fail with an "Object not visible exception" in the following actions.
Reply


Messages In This Thread
RE: Tabbed browsing: Unable to handle child tabs - by HazleVillage - 08-24-2009, 04:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to identify Child Object for a window application created using C#. ssanjeev 3 6,241 03-27-2017, 05:38 AM
Last Post: ankita
  Unable to switch between Tabs in Swf Application in QTP Vijay_bt 0 2,447 10-21-2016, 08:22 PM
Last Post: Vijay_bt
  Browser - Child objects method is very very slow prasperl 0 2,060 11-12-2014, 12:59 AM
Last Post: prasperl
  Any alternative of QC to handle Automation Scripts viks 0 1,861 04-30-2014, 10:59 AM
Last Post: viks
  Child nodes in a treeview vikas.sharma 1 4,385 09-01-2010, 01:38 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)