Share
Go down
joemac
Posts : 3
Join date : 2015-03-12

Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Sat Mar 21, 2015 3:35 am
Hi,

I have an issue using WebDriver playback with Selenium IDE and am hoping someone might be able to help me. I would be very greatful.

I am trying to run my Selenium IDE scripts on Internet Explorer. I have no problem getting IE running my script. It even successfully runs the first few lines of my IDE script. However, there is one particular line that fails every time. The line is nothing more than the clickAndWait command with the target using the id of a link. It works perfectly and easily with firefox. But each time I try to use it in IE it cannot find the element. Whats especially strange is that there is a clickAndWait command right before the problematic one and THAT one works just fine!

Does anyone have an idea as to what might be the problem? Any help would be much appreciated, as this one single issue prevents me from testing my software on Internet Explorer.

Thank you for your time,

Ilya

I am using Selenium IDE 2.8.0
selenium-server-standalone-2.
44.0.jar
IEDriverServer_Win32_2.44.0.exe
Internet Explorer 8.0
Windows 7 Enterprise 200 Service Pack 1, 32 bit

The html code is the following: It is the last line that fails.


Code:
<!--Preconditions-->
<tr>
    <td>open</td>
    <td>[url=https://company]https://company[/url] website</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=ctl00_MainPlaceHolder_txtUserName</td>
    <td>joe745</td>
</tr>
<tr>
    <td>type</td>
    <td>id=ctl00_MainPlaceHolder_txtPassword</td>
    <td>kd74bhd</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=ctl00_MainPlaceHolder_pbSubmit</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=ctl00_MainPlaceHolder_AdminLinkButton</td>
    <td></td>
</tr>
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Sat Mar 28, 2015 5:27 am
What is the error it gives you?
joemac
Posts : 3
Join date : 2015-03-12

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Tue Mar 31, 2015 1:40 am
That the element is not found.
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Tue Mar 31, 2015 9:11 pm
That means that it can't find the element on the page. Try adding a command like waitForElementPresent before you click on it
joemac
Posts : 3
Join date : 2015-03-12

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Wed Apr 01, 2015 1:20 am
Oh, I know what it means. It just can't seem to find it, even after I add waitForElementPresen.
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

on Wed Apr 01, 2015 1:24 am
Is that element located within an iframe? If so, try using the selectFrame command with the locator as the iframe's ID
Sponsored content

Re: Command clickAndWait not working when Selenium IDE is running on Internet Explorer

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