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

  • Home
  • SEARCH
  • 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 9275387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:34:37+00:00 2026-06-18T16:34:37+00:00

I’m working on a simple app that utilizes WebSpec. I’m utilizing the mozilla() browser.

  • 0

I’m working on a simple app that utilizes WebSpec. I’m utilizing the mozilla() browser.
Now, there is one page where I want to inject some text into an input and then click a button with the value “Submit”. The page is loaded properly, all of the Tags are present and can be accessed.
The only trouble is, the “Submit” button doesn’t work every time when WebSpec tries to access it. I can’t make it work even when I click it on my own. The page needs to be reloaded.

Here’s the code of the form:

<form action="" method="post" name="theForm" id="theForm" onsubmit="get_search_results(); return false;">
  <table cellpadding="0" cellspacing="10" style="text-align:left;margin:auto;" >
    <tr>
      <th valign="top">Enter Text: </th>
      <td valign="top"><input type="text" name="theText" id="theText" class="box"  value="" />
      <br />
      </td>
      <td valign="top">
        <select name="its-name" class="box" >
                //some options
        </select>
      </td>
      <td valign="top"><input type="button" value="Submit" class="button-of-color" onclick="get_the_results();"  /></td>
      <td valign="top"><a href="url" class="button-of-color">A Link</a></td>
    </tr>
  </table>
  <div id="theResults"></div>
</form>

And here’s the code I’m using to perform said actions (XTend code):

spec.open(theUrl)
val keywordBox = spec.find.input().with.name("theText")
val proceedBox = spec.find.input().with.type("button").with.value("Submit")
keywordBox.set.value(theText)
proceedBox.click

The input text field gets its value, but the button (even though it’s being clicked), won’t perform the script. As I said, even clicking manually doesn’t have any effect. On the other hand, I can change its value and other properties.

I have no idea why this happens and what can be the culprit. And since another app I’ve written in .NET using Watin works perfectly, I’m sure it should work.

Thanks in advance for your help. 🙂

EDIT: Just chaning mozilla to ie seems to be solving the problem. I suppose it’s a bug that should be fixed by the developers. I’ll ask them.
What I don’t like about this is, this is why I switched to Java from .NET — that I wouldn’t have to port appliactions.

In the meantime, I’m still looking for a workaround…

  • 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-06-18T16:34:38+00:00Added an answer on June 18, 2026 at 4:34 pm

    I had the same problem with IE, & added a while loop to check if the text field i set was done, [not a fix, and yes, a dirty workaround]

    Ex:

        ie.textField(name, "email").set("xyz@gmail.com");
        while (ie.textField(name, "email").value().isEmpty())
            ;       
        ie.button(name, "Login").click();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.