Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6254369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:10:03+00:00 2026-05-24T14:10:03+00:00

I recorded an action using the Selenium IDE and used the File->Export Test Cases

  • 0

I recorded an action using the Selenium IDE and used the File->Export Test Cases as Python 2 (Remote Control) format.

I am using Selenium RC 2.3.0

I then ran the script from command prompt but it throws an exception.

The exported Python 2 RC code is:

from selenium import selenium
import unittest, time, re

class login(unittest.TestCase):
    def setUp(self):
        self.verificationErrors = []
        self.selenium = selenium("localhost", 4444, "*chrome", "http://testServer1/")
        self.selenium.start()

    def test_login(self):
        sel = self.selenium
        sel.open("/WebAccess/login.html")
        sel.type("id=LoginID", "Administrator")
        sel.type("id=Password", "Administrator")
        sel.click("id=login")
        sel.wait_for_page_to_load("30000")
        sel.click("link=Home") # This is where it fails.

    def tearDown(self):
        self.selenium.stop()
        self.assertEqual([], self.verificationErrors)

if __name__ == "__main__":
    unittest.main()

At this line sel.click("link=Home") it fails with the exception

======================================================================
ERROR: test_login (__main__.login)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Documents and Settings\User\Desktop\login.py", line 16, in test_log
in
    sel.click("link=Home")
  File "C:\Python27\lib\selenium\selenium.py", line 290, in click
    self.do_command("click", [locator,])
  File "C:\Python27\lib\selenium\selenium.py", line 217, in do_command
    raise Exception, data
Exception: ERROR: Element link=Home not found

----------------------------------------------------------------------

I even tried increasing the 30000 to 60000 but still no help. I can see the page is loaded fully and waiting for a while because of the higher timeout. However when executing this link=Home it fails.

The HTML code is:

<div class="links nopreview">
<span><a class="csiAction" href="/WebAccess/home.html#URL=centric://REFLECTION/INSTANCE/_CS_Data/null">Home</a></span>
<span>&nbsp;•&nbsp;</span>
<span><span><a class="csiAction" href="/WebAccess/home.html#URL=centric://SITEADMIN/_CS_Site">Setup</a>
</span><span>&nbsp;•&nbsp;</span>
</span><span><a title="Sign Out" class="csiAction csiActionLink">Sign Out</a></span>
</div>

The recorded actions using IDE are:

<tr>
    <td>open</td>
    <td>/WebAccess/login.html</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=LoginID</td>
    <td>Administrator</td>
</tr>
<tr>
    <td>type</td>
    <td>id=Password</td>
    <td>Administrator</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=login</td>
    <td></td>
</tr>

<tr>
    <td>click</td>
    <td>link=Home</td>
    <td></td>
</tr>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:10:04+00:00Added an answer on May 24, 2026 at 2:10 pm

    Try using an XPath such as:

    sel.click('//a[contains(text(),"Home")]')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recorded a very simple test case Using the Selenium IDE integrated with
I recorded a script using the Selenium IDE extension for Firefox, and I would
A few test scenarios have been recorded using CodedUI test template for my web
How to save the recorded audio file which is recorded using sound_record.js from Titanium
I want to play a video file recorded to be played in the mediaplayer
I started learning how to use Selenium today. I have never used it before.
Coders, I am in process of writing test cases for Asp.net MVC 3 project
I'm reading a CSV file and the records are recorded as a string[]. I
A recorded test script includes a google search. After clicking on Google Search, the
I've recorded a few scripts with this tool, but when I run it, 100%

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.