[
http://jira.openqa.org/browse/WTR-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zeljko closed WTR-392.
----------------------
Resolution: Won't Fix
If this is still a problem, please report it here:
https://github.com/watir/watir-classic/issues
> IE v Firefox drop-down issue
> ----------------------------
>
> Key: WTR-392
> URL: http://jira.openqa.org/browse/WTR-392
> Project: Watir
> Issue Type: Bug
> Components: FireWatir
> Affects Versions: Open QA Migration
> Environment: windows
> Reporter: Zeljko
> Attachments: contacts[1].txt.xhtml, Contacts_Page_Screenshot.PNG,
> create[1].txt.xhtml, New_Contact_Page_Screenshot.PNG
>
>
> - moved from http://code.google.com/p/firewatir/issues/detail?id=70
> Issue 70: IE v Firefox drop-down issue
> 1 person starred this issue and may be notified of changes.
> Status: New
> Owner: ----
> Type-Defect
> Priority-Medium
> Reported by restagner, Jun 05, 2008
> Using the following script to run FireWatir, I obtain an exception error.
> However, the same script using Watir works just fine.
> FireWatir Script
> ======================
> require 'firewatir'
> include FireWatir
> test_site = "http://xyz.com/"
> ff=Firefox.new
> ff.goto(test_site)
> ff.button(:id, "submit").click
> ff.link(:text, 'Contacts').click
> ff.button(:id, 'createUserAccount').click
> ff.select_list(:name, "roleId").select('Business Manager')
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Watir Script
> ======================
> require 'watir'
> include Watir
> test_site = "http://xyz.com/"
> ie=IE.new
> ie.goto(test_site)
> ie.button(:id, "submit").click
> ie.link(:text, 'Contacts').click
> ie.button(:id, 'createUserAccount').click
> ie.select_list(:name, "roleId").select('Business Manager')
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> What is the expected output?
> The 'Business Manager' is selected from the drop-down list
> What do you see instead?
> `assert_exists': Unable to locate object, using name and roleId
> (FireWatir::Exception::UnknownObjectException)
> What version of the product are you using?
> 1.1.1
> On what operating system?
> Windows XP
> ---
> Comment 1 by angrez, Jun 05, 2008
> Can you provide the HTML code also so that I can test it over here? AFAIK,
> all the
> select list test cases ran fine before release. So in case there is some
> different
> scenario in your HTML it would be helpful to add that also in the test cases
> ---
> Comment 2 by restagner, Jun 06, 2008
> I've attached the HTML code to this comment. Also, I ran the FireWatir test
> cases
> associated with select list after encountering the issue described above, and
> they
> worked just fine...so, I guess we can safely say that it is something about
> the HTML
> we are attempting to test.
> contacts[1].txt
> 12.5 KB Download
>
> 0 bytes Download
> ---
> Comment 3 by restagner, Jun 06, 2008
> I've also included a screenshot of the Contacts page (see attachment), which
> is
> associated with HTML source I sent to you in an earlier posting.
> Contacts_Page_Screenshot.PNG
> 103 KB Download
> ---
> Comment 4 by angrez, Jun 09, 2008
> I don't think that there is a drop down by this name in the HTML you provided.
> ---
> Comment 5 by restagner, Jun 10, 2008
> Correct. Unfortunately, FireWatir appears to click the 'createUserAccount'
> button
> (that's the Create Contact button on the Contacts_Page_Screenshot image
> attached to a
> _previous_ posting) but does not navigate to the next page that actually
> contains the
> drop down. Please see attached files for the HMTL that contains the 'Business
> Manager' selection, as well as a screenshot of the New Contact page. Any help
> with
> resolving this issue would be appreciated. Thanks.
> create[1].txt
> 15.0 KB Download
> New_Contact_Page_Screenshot.PNG
> 104 KB Download
> ---
> Comment 6 by restagner, Jun 11, 2008
> I've got some more information you... It appears that if I add a second
> "ff.button(:id, 'createUserAccount').click" to my script, then FireWatir and
> Firefox
> behave as expected -- that is to say, the button is clicked and the New
> Contact page
> is loaded. However, adding a second statement that is identical to the
> previous one
> is not something I'd like to do for all my scripts. Why is FireWatir/Firefox
> requiring that I click the button twice in order to get to the next page?
> ---
> Comment 7 by angrez, Jun 11, 2008
> I am not sure why this is happening. Because click method should wait for the
> page to
> get loaded, otherwise first two clicks should also not work that is:
> ff.button(:id, "submit").click
> ff.link(:text, 'Contacts').click
> ---
> Comment 8 by restagner, Jun 12, 2008
> Hhhhhhmmmmmm...I'm wondering could it have anything to do with how the
> developer
> coded the 'submit' button vs. how he coded the 'Create Contact' button?
> (reference
> code snippets below)
> Submit Button
> -----------------------
> <button id="submit" type="submit" class="primaryButton"><span>Sign
> In</span></button>
> Create Contact Button
> -------------------------
> <button id="createUserAccount" class="primaryButton"
> href="/index.php/contact/create"
> rel="command"><span>Create Contact</span></button>
> NOTE: The additional use of the 'href' and 'rel' attributes in the Create
> Contact
> button code!!
> Could this be causing the problem?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development