Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Help With .Click Method In Firefox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
furnace915  
View profile  
 More options Oct 31 2011, 4:49 pm
From: furnace915 <brent.velan...@gmail.com>
Date: Mon, 31 Oct 2011 13:49:58 -0700 (PDT)
Local: Mon, Oct 31 2011 4:49 pm
Subject: Help With .Click Method In Firefox
Hi - I am just starting out with Watij and absolutely love the ease of
use in finding and interacting with page elements to quickly create
scripts, but I am also having a showstopper issue in my application
where click() works correctly in IE but not in Firefox.

Here is the specific issue:

When executing the following code, my browser ends at diffferent URL's
depending on which browser I have initialized.

=======================

Tag homeSearchButton = spec.find.input().with.className("spinner");
homeSearchButton.click();

=======================

Results:

1.  IE:  Webspec browser points to the correct URL:  http://xx.yy.com/global/search#q=Foo
2.  Firefox:  Webspec browser points to incorrect URL (query string is
not created through expected javascript methods that fire properly in
IE):  http://xx.yy.com/global/search?searchTerm=Foo

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

Here is the html for the form I am interacting with, starting with a
div wrapper:

<div class="search_home_wrap">
  <form class="spinner JSsubmit" title="Home Search" method="GET"
action="/global/search">
  <label for="bigSearch">Get Started!</label>
    <input id="bigSearch" class="search-assist ui-autocomplete-input
placeholder" type="text" title="Search Term" value=""
placeholder="countries, companies, industries, topics, etc..."
name="searchTerm" autocomplete="off" role="textbox" aria-
autocomplete="list" aria-haspopup="true">
  <input class="spinner" type="submit" title="Search" value="Search">
  </form>
</div>

Note:  The aforementioned issue does not occur when manually
interacting with my application, so it stands to reason there is not
an application bug affecting my results when driving the application
through Watij.

I hope someone has seen similar behavior with click() and can help
with a workaround.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »