Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

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