JBehave
  1. JBehave
  2. JBEHAVE-486

Firefox window not closing (by default) when failure occurs

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: web-3.3.1
    • Fix Version/s: web-3.3.3, web-3.4
    • Component/s: Web Selenium
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Steps to reproduce for Etsy:

      1) Corrupt CartContents.goovy (line 24) like so aim at an xpath like so:

      findElement(By.xpath("//a[@rel = 'removeeeeeeeeeee']")).click()

      2) Run the build.

      3) Note that there is a Firefox window open at the end of the run. This did not happen before the 3.4-beta-1 (core) and 3.3.1 (web) releases

        Activity

        Paul Hammant made changes -
        Field Original Value New Value
        Description Steps to reproduce:

        1) Corrupt CartContents.goovy like so:

        --- a/etsy-stories/src/main/groovy/pages/CartContents.groovy
        +++ b/etsy-stories/src/main/groovy/pages/CartContents.groovy
        @@ -21,6 +21,6 @@ class CartContents extends BasePage{
         
           def removeItem() {
             get("http://www.etsy.com/cartcheckout.php")
        - findElement(By.xpath("//a[@rel = 'remove']")).click()
        + findElement(By.xpath("//a[@rel = 'removeeeeeeeeeee']")).click()
           }
         }

        2) Run the build.

        3) Note that there is a Firefox window open at the end of the run. This did not happen before the 3.4-beta-1 (core) and 3.3.1 (web) releases :(
        Steps to reproduce for Etsy:

        1) Corrupt CartContents.goovy (line 24) like so aim at an xpath like so:

           findElement(By.xpath("//a[@rel = 'removeeeeeeeeeee']")).click()

        2) Run the build.

        3) Note that there is a Firefox window open at the end of the run. This did not happen before the 3.4-beta-1 (core) and 3.3.1 (web) releases :(
        Mauro Talevi made changes -
        Summary Firefox window not closing (by default) for JB run with failure in it. Firefox window not closing (by default) when failure occurs
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s web-3.4 [ 17279 ]
        Hide
        Mauro Talevi added a comment -

        Root cause is JBEHAVE-472. Fixed in 3.4-beta-2.

        Show
        Mauro Talevi added a comment - Root cause is JBEHAVE-472 . Fixed in 3.4-beta-2.
        Mauro Talevi made changes -
        Fix Version/s web-3.3.3 [ 17366 ]
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Paul Hammant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: