Object Identification inside iframe

44 views
Skip to first unread message

Sam

unread,
Sep 27, 2016, 4:08:59 AM9/27/16
to Galen Framework
Hi All,


There are various charts and graphs inside a page which I'm planning to verify,which is located inside an iframe.
Is there is a way where we can identify objects inside an iframe?

Using the latest version of galen framework with java.


This is a sample for reference -

<div id="abc">
 
<div id="main">
     
<ul id="abc1">
       
<li class="someclass" id="SomeDyamincValues">
           
<iframe frameborder="0" class="appframe"></iframe>
         {many divs}
         
<div id ="charts"></div>
         
</li>
       
<li class="someclass"  id="SomeDyamincValues">
           
<iframe frameborder="0" class="appframe"></iframe>
       {many divs}
         
<div id ="charts"></div>
         
</li>
       
<li class="someclass"  id="SomeDyamincValues">
           
<iframe frameborder="0" class="appframe"></iframe>
         {many divs}
         
<div id ="charts"></div>
         
</li>
     
</ul>
 
</div>
</div>


Needs to locate <div id ="charts"></div>  inside every iframe.

Sam

unread,
Oct 13, 2016, 2:11:35 AM10/13/16
to Galen Framework
Hi,

I was able to do this through by using component frame feature of Galen spec language.

For example-

@objects
 main
-frame        id     mainFrame


=Main Frame Check=
 main
-frame:
       component frame secondFrame
.gspec


We can identify the iframe which have define in secondFrame.gspec file, and can do our checks inside that iframe.

Now by using this approach , lots of spec files are being created i.e for each frame we have a spec file.

Correct me if I'm wrong in the above mentioned approach. Let me know if there is another approach.

Thanks !


Reply all
Reply to author
Forward
0 new messages