Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

I can't locate any element in a form under an iFrame with Selenium IDE

View previous topic View next topic Go down

I can't locate any element in a form under an iFrame with Selenium IDE

Post by idles23 on Tue Apr 14, 2015 3:38 pm

Hi, I'm new at this forum and I need your help as soon as possible because I'm having lots of troubles with Selenium IDE.

I have to record a script with the IDE in a web application that has lots of iFrames, DIV tags and JavaScript scripts. In my script, all works well until this point:

<tr>
<td>open</td>
<td>my URL</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>An option menu</td>
<td>true</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//html/body/iframe</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>myFrameID</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//html/body</td>
<td></td>
</tr>

So I can select myFrameID and catch the body inside in, but under the <body> tag, I have a <form> and I need to locate a text that are inside a <div> tag in that <form>. But Selenium IDE doesn`t locate anything, neither the <form>.

I hope your answers, thank you and help me please!!

idles23

Posts : 1
Join date : 2015-04-14

Back to top Go down

Re: I can't locate any element in a form under an iFrame with Selenium IDE

Post by dwdunning on Sat Apr 25, 2015 5:54 am

I'm new to this myself, but maybe the css locators will help

you can look by ID with the hash symbol #

css=div#exampleID

or by class with a period .

css=div.exampleClass

or by anything in the string with contains

css=div:contains("Text I'm Looking for")

if you have need to narrow down, you can combine these

css=tr:contains("Name") .input

would give you the element with class=input in the same Table Row as the label "Name"

your example might look like

assertElementPresent
css=div:contains("text to locate")


dwdunning

Posts : 1
Join date : 2015-04-25

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum