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 6025211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:16:06+00:00 2026-05-23T04:16:06+00:00

I am testing a page similar to Google search where you would enter the

  • 0

I am testing a page similar to Google search where you would enter the search terms in the provided text box, and click Search, and the next page returns a bunch of results matching your search term. These results are all links to documents (doc files), and are random depending on your searched text. I am having a problem clicking on the first results link. I record the steps using selenium IDE, but when I run the tests, it fails on the point where it has to click on the first results link. The error I’m getting is:

Selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window.  The error message is: Permission denied

I have tried this two ways:

selenium.Click("xpath=//html/body/form/div[2]/div[3]/div[3]/table/tbody/tr/td[2]/span/a/");
selenium.Click("xpath=//span[contains(@class,'ResultList_Title_Link')][1]/a");

When I right-click on the first results link, and do a inspect element, I see:

<w_lit_documenttitle wid="82e0-9888a350e66b">MEMORANDUM OF <span style="background-color:#FFFF66;color:#333333;font-weight:bold" name="wlCitedDoc" id="wlCitedDoc">LAW</span> COMPLAINT</w_lit_documenttitle>

The Xpath for the above is:

/html/body/form/div[2]/div[3]/div[3]/table/tbody/tr/td[2]/span/a/w_lit_documenttitle
  • 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-23T04:16:06+00:00Added an answer on May 23, 2026 at 4:16 am

    i believe you have to do this in dynamic way as you are saying clicking on FIRST LINK.

    after the results page loaded with all the results as a links,
    // if the id’s are defined for every link you are going to click

    String[] links = selenium.getAllLinks();

    for(String link : links)

    selenium.click(link);

    //if no id’s are defined

    selenium.getEval(“window.document.getElementsByTagName(‘a’)[0].click()”); //this is to click the first link

    i hope this is what you are looking for

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Testing.BSMain, Text: Start Page I would like to substring the value above and returning
sendng json data to another jsp page - for testing really. You enter a
I am testing a website very similar to Google. So, if a user entered
I'm getting a 403 error on my new rails testing page: removed.com:8080. I installed
I'm testing a page with Selenium IDE and want to execute a method already
I'm load testing a web page using visual studio load testing tool, but I
I am sendng json data to another jsp page - for testing really. You
I'm developing a new website . Testing out the page in different browsers, I
For testing I have 1 isolated page - no masters, controls, …. My sessions
See code below: I want Page 1 to alert #testing... This works in C

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.