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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:18:47+00:00 2026-05-23T14:18:47+00:00

Question help Hi I’m new to Ruby and watir-webdriver and I’ve searched all over

  • 0

Question help

Hi I’m new to Ruby and watir-webdriver and I’ve searched all over and can’t find an answer to this.

I have a link that is inside a table, this table has a header on top of the table that sorts the table numerically if clicked. In Chrome and Ie, the link is clicked fine and continues on but in firefox it clicks the header and reorganizes the table, but not the link and no error message is given.

I’ve tried xpath, regexp, table referencing, :href, :text, (there are no id or name fields), and using the .flash method I’ve seen that it looks at the correct link, but still clicks the top of the table.

Here is the html

<thead>
    <tr>
        <th id="0" class="canclick" width="14%" align="left" datatype="string">
            Contract #
            <span id="sortIndicatorBlank">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </th>
    </tr>
</thead>
<tbody>
    <tr class="backD">
        <td width="10%" valign="top" align="left">
             <a href="/policy/clientAccountSummary.action?forwarder=ClientList&basho.menuNodeId=12801&basho.taskPanelNodeId=1261&number=015633828"> 015633828 </a>
        </td>

Here is the code I’m using that clicks the correct link in Chrome and Ie but not in firefox

link = "015633828"

exp1 = Regexp.new link

@browser.link(:href, exp1).click

Again to clarify: Using .flash method it finds the correct link(flashes the link I want to click inside the table), but on the actual .click operation it clicks the “Contract #” portion of the header not the link.

I think the problem might be that the table header, is a floating header, ie it moves with you as you scroll down the page and stays at the top of the page so that its always visible.

If you need more info to clarify let me know. Thanks!

  • 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-23T14:18:47+00:00Added an answer on May 23, 2026 at 2:18 pm

    I’m not sure why it is doing this, but as a potential workaround could you perhaps try something along the following lines to pull the href value out of the link and then have the browser goto it directly?

    @browser.goto(@browser.link(:text, ' 015633828 ').href)
    

    (you might need to add the base url for the site to the href to make that work, but you get the idea)

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

Sidebar

Related Questions

I am quite new to programming, i have a question please help me. (
may be too simple groovy question but....please help i have a list like this:
Can anyone help me with a question about webservices and scalability? I have written
First of all this is not a question seeking Programming help. I am doing
I realize this question is a bit subjective and won't have a definitive answer
I have reworded my question to help gain my specific answer, sorry if my
First, a big thank you to anyone that read this question and can help.
I hoped the answer to my previous question whould help me with this one,
This is a followup to an earlier question ( Help Refining RegEx ("\b\d{6}([ ]{1,15})\d{7}\b")
This may be a repeat of the following unanswered question: Help with bitmap lock

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.