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.