Bug 1006251 - javascript seems to not work as expected
Summary: javascript seems to not work as expected
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: htmlunit
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: gil cattaneo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-10 10:17 UTC by Michał Piotrowski
Modified: 2013-09-11 10:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 10:54:21 UTC
Type: Bug


Attachments (Terms of Use)

Description Michał Piotrowski 2013-09-10 10:17:22 UTC
Description of problem:
I'm working on a project that uses htmlunit browser in behat tests (unfortunately I can not provide sample code that would help to repeat the problem). Here is a behat scenario that works fine on travis-ci.com and other developers Windows machines but fails on my local Fedora 19 installation

    When I fill in the following:
      | Product Quantity  | 1        |
      | Expected delivery | days-30  |
      | Product condition | like_new |
      | Resale option     | none     |
    And I press "Add"
    And I wait for 5 sec
    And I open cart
    And cart should contain 1 item
    And in cart should be item "FarCry" with quantity "1" and resale "none"

    When I fill in the following:
      | Product Quantity | 2 |
    And I press "Add"
    And I wait for 5 sec
    And cart should contain 1 item
    And in cart should be item "FarCry" with quantity "3" and resale "none"


If I change last line in a scenario to
And in cart should be item "FarCry" with quantity "1" and resale "none"
it works fine.

Basing on this I suspect that some part of javascript support in Fedora 19 htmlunit is broken. Some other javascript tests runs fine - for example if tests clicks css selector.

I've got installed:
htmlunit-2.9-5.fc19.noarch
htmlunit-core-js-2.9-4.fc19.noarch

Is there anything that can be done to get better javascript support in htmlunit browser?

Best regards,
Michal

Comment 1 gil cattaneo 2013-09-10 18:22:42 UTC
which version use on other OS?
for newer release should fix before this [1]
there are too many problems reported here[2] related at java7
regards


[1] https://bugzilla.redhat.com/show_bug.cgi?id=895429 , https://bugzilla.redhat.com/show_bug.cgi?id=1006510

[2] http://sourceforge.net/p/htmlunit/bugs/

Comment 2 Michał Piotrowski 2013-09-11 10:54:21 UTC
It seems that problem is not related to htmlunit browser from OS. I removed it and some javascript tests works fine. I guess that htmlunit is shipped in selenium. So this problem is not related to Fedora.

Best regards,
Michal


Note You need to log in before you can comment on or make changes to this bug.