mink

How to customize screen resolution with saucelabs (selenium, behat3.0 mink) capabilities

断了今生、忘了曾经 提交于 2021-01-28 22:58:12
问题 This is my behat.yml file : firefox: suites: firefox: contexts: -FeatureContext extensions: Behat\MinkExtension: javascript_session: selenium2 base_url: https://example.com selenium2: wd_host: username:pwd@ondemand.saucelabs.com/wd/hub browser: firefox capabilities: {'platform':'OS X 10.10', 'browser':'firefox', 'version':'42.0', "screen-resolution":"1280x1024"} Which is giving error " [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "screen

Behat + selenium 2 wait for page to load

大兔子大兔子 提交于 2020-01-09 11:39:29
问题 Is there a way to reliably wait for pages to load when using Behat with Mink using the Selenium2Driver? I've inherited some legacy tests that wait like this: Background: Given I am on "http://test.example.com" And I wait for "20000" Given I click on the element with css selector ".button1" And I wait for "30000" Given I click on the element with css selector ".button2" And I wait for "30000" Given I click on the element with css selector ".button1" And I wait for "10000" i.e. just this single

Behat works fine but PhantomJS fails on dropdown menu when trying to click

♀尐吖头ヾ 提交于 2020-01-06 09:08:34
问题 Gherkin below works fine with behat but when I use PhantomJS I get error on When I follow "Profile" line below: Note: The element is a dropdown menu from bootstrap so it toggles after click. Error : Exception thrown by (//html/.//a[./@href][(((./@id = 'Profile' or contains(normalize-space(string(.)), 'Profile')) or contains(./@title, 'Profile') or contains(./@rel, 'Profile')) or .//img[contains(./@alt, 'Profile')])] | .//*[./@role = 'link'][((./@id = 'Profile' or contains(./@value, 'Profile')

Behat works fine but PhantomJS fails on dropdown menu when trying to click

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 09:06:33
问题 Gherkin below works fine with behat but when I use PhantomJS I get error on When I follow "Profile" line below: Note: The element is a dropdown menu from bootstrap so it toggles after click. Error : Exception thrown by (//html/.//a[./@href][(((./@id = 'Profile' or contains(normalize-space(string(.)), 'Profile')) or contains(./@title, 'Profile') or contains(./@rel, 'Profile')) or .//img[contains(./@alt, 'Profile')])] | .//*[./@role = 'link'][((./@id = 'Profile' or contains(./@value, 'Profile')

Behat Mink webdriver session is destroyed after every feature in a suite

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 02:40:10
问题 I am trying to automate sugarcrm functionality with behat BDD and Mink with selenium webdriver for php. I have properly installed both of them and able to run behat and mink together. for example checking login on sugarcrm as one feature. Now the problem is when i create two feature file say login.feature and setup.feature. Behat successfully automate login process in browser but as soon as it switches to setup.feature which require login session to be maintained from previous feature, it

How to change codeception phpbrowser/mink timeout

自古美人都是妖i 提交于 2020-01-02 07:51:19
问题 I'm trying to create test with codeception that will check's the page is properly working in case of high load. Unfortunately if the page is in very very high load and the tests starts I got such error: [..] [Codeception\Exception\ModuleConfig] Codeception\Util\Mink module is not configured! Provided URL can't be accessed by this driver.[curl] 28: Operation timed out after 30031 milliseconds with 0 out of -1 bytes received [url] http://xxxx.xxx/app_db2.php [..] Is there any possibility to set

sahi and symfony2

你。 提交于 2019-12-31 06:25:27
问题 i would like to test behat, mink and sahi with symfony2 so, in my config_test.yml i have mink: base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php default_session: symfony sahi: ~ and in test.feature @mink:sahi Scenario: Open page with products list and check it Given I am on "/hello" Then the response should contain "hello" when i execute i have this PHP Fatal error: Call to undefined function Buzz\Client\curl_init() in C:\wamp\ www\Symfony_Standard_2.0.15_2\Symfony

sahi and symfony2

瘦欲@ 提交于 2019-12-31 06:25:02
问题 i would like to test behat, mink and sahi with symfony2 so, in my config_test.yml i have mink: base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php default_session: symfony sahi: ~ and in test.feature @mink:sahi Scenario: Open page with products list and check it Given I am on "/hello" Then the response should contain "hello" when i execute i have this PHP Fatal error: Call to undefined function Buzz\Client\curl_init() in C:\wamp\ www\Symfony_Standard_2.0.15_2\Symfony

Checking JavaScript AJAX loaded resources with Mink/Zombie in PHP?

守給你的承諾、 提交于 2019-12-23 03:01:54
问题 I'm trying to test a page, which otherwise uses massive asynchronously loaded JavaScript resources, with PHP script that uses Mink and Zombie. Unfortunately, this process fails (leaving behind hanging processes). I have managed finally to simulate this error on a minimal example, which I'll post here. The first page - the page to be tested - is basically a self-contained file, that simulates the AJAX calls by calling itself: test_JSload.php <?php if (array_key_exists("QUERY_STRING", $_SERVER)

Struggling to install mink and behat using composer for use with symfony2

試著忘記壹切 提交于 2019-12-21 12:57:09
问题 I'm trying to install behat and mink with symfony 2.4 using composer but I can't seem to get my composer.json file to an resolve to an installable set of packages. I installed symfony2 using the command on http://symfony.com/doc/current/book/installation.html php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.4.* Below is my require section of my composer.json file: "require": { "php": ">=5.3.3", "symfony/symfony": "~2.4", "doctrine/orm": "~2.2,>=2