Skip to content

seeElement finds a field but fillField doesn't #824

@vjandrea

Description

@vjandrea

Acceptance test for my Laravel4 application, i tried using css selectors:

* I expect to see the form field
* I see element "input[name=contact_name]"
* I am going to fill the contact form
* I fill field "input[name=contact_name]","Test sender"
 ERROR 
1) Failed to send a message with the contact form while i'm not logged in in SendMessageFromContactFormWhenNotLoggedInCept.php
Sorry, I couldn't fill field "input[name=contact_name]","Test sender":
InvalidArgumentException: Unreachable field "contact_name"

Scenario Steps:
8. I fill field "input[name=contact_name]","Test sender"
7. I am going to fill the contact form
6. I see element "input[name=contact_name]"
5. I expect to see the form field

  [InvalidArgumentException] Unreachable field "contact_name"  

and using ids:

* I expect to see the form field
* I see element "#contact_name"
* I am going to fill the contact form
* I fill field "#contact_name","Test sender"
 ERROR 
1) Failed to send a message with the contact form while i'm not logged in in SendMessageFromContactFormWhenNotLoggedInCept.php
Sorry, I couldn't fill field "#contact_name","Test sender":
InvalidArgumentException: Unreachable field "contact_name"

Scenario Steps:
8. I fill field "#contact_name","Test sender"
7. I am going to fill the contact form
6. I see element "#contact_name"
5. I expect to see the form field

  [InvalidArgumentException] Unreachable field "contact_name" 

The modules i'm using are PHPBrowser, WebHelper, Laravel4, TestHelper

If you need more details please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions