Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sahi Driver doesn't fill in form fields #33

Closed
schmittjoh opened this issue Jul 13, 2011 · 5 comments
Closed

Sahi Driver doesn't fill in form fields #33

schmittjoh opened this issue Jul 13, 2011 · 5 comments

Comments

@schmittjoh
Copy link
Contributor

There seems to be a bug in the Sahi Driver when you want to fill out form fields.

My scenario looks like this:

  @database @userFixture @javascript
  Scenario: Access Profile Page For the First Time
    Given I am logged in as normal user
    And I am on "/profile/"
    Then I should see a list of all current posts

If I run it without @javascript, then everything works fine. When running with @javascript, Sahi doesn't seem to fill in the form fields, but simply submits the login form without any values. I'm using Sahi 3.5, and latest Behat/Mink version.

@everzet
Copy link
Contributor

everzet commented Jul 13, 2011

This is a know Sahi issue: http://sahi.co.in/forums/viewtopic.php?pid=8838#p8838 with fix :-) Narayan promised the new version with included fix a week ago, but we're still waiting :-)

@everzet everzet closed this as completed Jul 13, 2011
@everzet
Copy link
Contributor

everzet commented Jul 13, 2011

Tweeted to Sahi guys once again: http://twitter.com/everzet/status/91097369592074240 ;-)

@schmittjoh
Copy link
Contributor Author

Thanks for the pointer, it works if you manually apply the fix that is
mentioned in the thread.

On Wed, Jul 13, 2011 at 12:56 PM, everzet <
reply@reply.github.com>wrote:

Tweeted to Sahi guys once again:
http://twitter.com/everzet/status/91097369592074240

Reply to this email directly or view it on GitHub:
https://github.com/Behat/Mink/issues/33#issuecomment-1561808

@everzet
Copy link
Contributor

everzet commented Jul 13, 2011

Yep. I know :-)

@biruwon
Copy link

biruwon commented Sep 13, 2012

I have the same problem with Sahi and Chrome.

How to fix this line: Sahi.prototype._isChrome = function () {return /Chrome/.test(this.navigator.userAgent);};

Edit:

I found the problem. Sahi or Sahi+Mink don't complete field of email type. I changed the field to text type y solved it. But for me this is a partial solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants