Forum Discussion

sasiarun1127's avatar
sasiarun1127
New Contributor
6 years ago
Solved

Unable access iframe objects using findchildbyxpath

I'm find the page objects using findchildbyxpath but iframe objects are returning null even path is fine in UI

8 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    What happens when you use Object Spy on one of those objects?  Please give us a screenshot of the results.

    • sasiarun1127's avatar
      sasiarun1127
      New Contributor

      Sorry for the delay response Object spy cant access the particular object because that object belongs to map. 

      please find the screen shot attachment for your referance 

      mapFrame = gapPage.FindChildByXPath("//iframe[contains(@src,'flows')]")

      above code returning the object 

      isMapLoaded = gapPage.FindChildByXPath("//div[contains(@id,'map-loader')]")

      the above one returning none type even the xpath is accessing the UI level

      • Marsha_R's avatar
        Marsha_R
        Icon for Champion Level 3 rankChampion Level 3

        Try the Object Spy within TestComplete please.