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

input submit with Behat/MinkExtension #735

Open
med004 opened this issue Apr 7, 2017 · 2 comments
Open

input submit with Behat/MinkExtension #735

med004 opened this issue Apr 7, 2017 · 2 comments

Comments

@med004
Copy link

med004 commented Apr 7, 2017

I have make test to add article in my project symfony but i have probleme in press input submit

this is code my feature:

Feature: ajouter

Feature: dossiertest

		@javascript
		Scenario: List 2 files in a directory
		 
		  Given I am on the homepage
		  Then I should see "hello"
		  When I go to "/ajoutermed"
		  Then I should see "ajouter"
		  And I wait 2 seconds
		  And I fill in "test_medbundle_med_section" with "test section"
		  And I fill in "test_medbundle_med_info" with "test info"
		  When I click on "ajout"
		  Then I should see "ajouter"

this is code context:

        /**
         * @When /^I click on "([^"]*)"$/
         */
        public function iClickOn($arg1)
        {
           
            $session = $this->getSession();
            $element = $this->getSession()->getPage()->findById($arg1);

        if ($element) {
            $element->click();
        } else {
            var_dump($arg1 . " could not be found");
            var_dump($element);
        }
        }

now i have this problem when i lunch my test in step " When I click on "ajout"

http://imgur.com/a/k3NJD

@stof
Copy link
Member

stof commented Apr 10, 2017

the new Firefox driver for Selenium 3 is not yet fully supported, because it implements the new (draft) W3C Webdriver spec, not the Selenium Webdriver spec, and there are a few differences.
You have a few alternatives:

  • stick to Selenium 2
  • use Chrome rather than Firefox
  • use the dev version of MinkSelenium2Driver (which contains some changes to improve the W3C Webdriver compat, even though it is still not 100% green)

@med004
Copy link
Author

med004 commented Apr 11, 2017

I use chromium browser because i use ubuntu 16.04 32 bits, I use selenium 3 and i make chromedriver in your path but i have this problem now when I lunched test behat http://imgur.com/a/5eJZd ,also I use selenium2 and i have also problem http://imgur.com/a/5eJZd , help me please im blocked

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

2 participants