Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Behat hangs when trying to download some files with Sahi driver #9

Open
arnaugm opened this issue Apr 24, 2013 · 0 comments
Open

Behat hangs when trying to download some files with Sahi driver #9

arnaugm opened this issue Apr 24, 2013 · 0 comments

Comments

@arnaugm
Copy link

arnaugm commented Apr 24, 2013

A simple scenario that clicks on a link which opens a pdf and then goes to another page, makes behat waits until a time out exception is thrown when using Sahi.

Feature: download a file
  In order to resolve an issue downloading a file with behat
  As a developer
  I need to create a failing test

  Scenario: Try the download of a pdf with Sahi
    Given I am on "http://twig.sensiolabs.org/documentation"
    When I follow "PDF"
    Then I am on "http://www.wikipedia.org"
      Command execution time limit reached: `_sahi._navigateTo("http://www.wikipedia.org", true)`

1 scenario (1 failed)
3 steps (2 passed, 1 failed)
1m7.534s

That doesn't seems to be a problem when using Selenium2

Feature: download a file
  In order to resolve an issue downloading a file with behat
  As a developer
  I need to create a failing test

  Scenario: Try the download of a pdf with Selenium2
    Given I am on "http://twig.sensiolabs.org/documentation"
    When I follow "PDF"
    Then I am on "http://www.wikipedia.org"

1 scenario (1 passed)
3 steps (3 passed)
0m9.935s

I've tried with Firefox and Chrome and the behavior is the same in both.

It's probably related to the type of file to download as the problem si also present here

Feature: download a file
  In order to resolve an issue downloading a file with behat
  As a developer
  I need to create a failing test

  Scenario: Try the download of a file
    Given I am on "http://pear.behat.org/"
    When I follow "2.3.5"
    Then I am on "http://www.wikipedia.org"
      Command execution time limit reached: `_sahi._navigateTo("http://www.wikipedia.org", true)`

1 scenario (1 failed)
3 steps (2 passed, 1 failed)
1m6.76s

but not here

Feature: download a file
  In order to resolve an issue downloading a file with behat
  As a developer
  I need to create a failing test

  Scenario: Try the download of a file
    Given I am on "http://symfony.com/download"
    When I follow "http://symfony.com/download?v=Symfony_Standard_Vendors_2.2.1.tgz"
    Then I am on "http://www.wikipedia.org"

1 scenario (1 passed)
3 steps (3 passed)
0m6.988s
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant