This is a migrated thread and some comments may be shown as answers.

Can't find Element with in <iframe>

1 Answer 152 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 13 Mar 2012, 10:43 AM

<html>
 
<head>
 
<body class="yui-skin-fmc skin-lincoln nameplate nameplate-MKS2012 selldown">
 
<iframe id="_yuiResizeMonitor" title="Text Resize Monitor" style="position: absolute; visibility: visible; width: 2em; height: 2em; top: -31px; left: 0pt; border-width: 0pt;">
 
<div id="global-flips">
 
<div id="page">
 
<div id="header" class="nameplate nameplate-MKS2012 selldown">
 
<div id="view-hd-line">
 
<div id="view-container" class="view-incentives">
 
<div id="view">
 
<div id="view-bd" class="view-bd">
 
<div class="incentives_header">
 
<div class="incentives-select-vehicle">
 
<div id="incentives-content" data-year="2012" data-model="MKS" data-iframebase="https://lincoln-incentives.fdv3.com//Page/">
 
 
<html>
 
<head>
 
<body>
 
<script src="/Scripts/Lincoln.Omniture.Control.js" type="text/javascript">
 
<script type="text/javascript">
 
<script type="text/javascript">
 
<script type="text/javascript">
 
<div class="incentive">
 
<script type="text/javascript">
 
<div class="flipFilter">
 
<select style="display : none;" name="modelDescription">
 
<div>
 
<div class="zipChange">

If i want to find  <div class="zipChange"> under <iframe id="incentives-iframe" class="active" frameborder="0" src="https://lincoln-incentives.fdv3.com//Page/?zipcode=48152&year=2012&make=Lincoln&model=MKS&site=NG&app_context=ngbs_sploffr">

how can do it??

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 14 Mar 2012, 10:57 PM
Hello Alex,

Have you tried recording against an element within the frame through the browser? Do you receive a specific error on playback? If so, please provide more information on that.

If you intend to proceed in code, you must define the frame first, then locate the element via the frame. See here for more information.

All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or