Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    SirPL
    @SirPL
    @crossan007 - I found the same issue. Can you confirm that the $page->getContent() returns the page's source?
    Charles Crossan
    @crossan007
    @SirPL yes; $page->getContent() does return the DOM
    SirPL
    @SirPL
    So the very same issue
    Charles Crossan
    @crossan007
    It would seem so
    SirPL
    @SirPL
    I think I will revert the MinkExtension to some earlier version
    Charles Crossan
    @crossan007
    I'm not fully sure where the issue lies for me, since I had to use the newer version of Mink to fix the chrome/firefox issue (Mink was asking selenium for the wrong browser)
    I'll admit that the interactions between behat / Mink / MinkExtension / Selenium / ChromeDriver are a bit "mysterious" to me. I've got a vague understanding, but certainly could be better
    SirPL
    @SirPL
    I'm not sure either. But I'll give a try
    Charles Crossan
    @crossan007
    I know it used to work for me on windows, but no longer works. It continues to work in my CI environment (TravisCI / Linux / Saucelabs)
    SirPL
    @SirPL
    For me this is the very first time I'm using Behat... I was sure it's my fault
    So I'm a bit glad it's not me
    Charles Crossan
    @crossan007
    @SirPL Looks like it's a new issue with Chrome 75 :-) Chrome 74 works.
    Sadly, It seems really difficult to disable auto-upgrade on non-domain joined Windows machines
    Charles Crossan
    @crossan007
    why is Mink archived on the Behat GitHub organization? Is it dead? There haven't been any commits since 10/27/2014
    Charles Crossan
    @crossan007
    @SirPL not sure if you're following Behat/MinkExtension#345, but I found the solution to fillField failing - it's because ChromeDriver is defaulting to W3C mode, which isn't supported yet. Need to disable W3C mode in the behat.yml file (or however you're configuring your behat instance)
    Eduard Sukharev
    @eduard-sukharev
    Hi there. I have custom behat formatter (namely, allure formatter) which allows attaching test artifacts if exceptions of it's own ArtifactExceptionInterface are thrown. I have afterStep/afterScenario hook that can take screenshots, but at that point it's too late - formatter already has gotten it's exception and I cannot access it from AfterStepScope (it's Behat 3). I could also throw my own exceptions, but most basic steps are from MinkContext and RawMinkContext which use WebAssert class that throws it's own exceptions (in private methods).
    All that said, what would be the best way to handle this? Make edits to WebAssert and PR it into MinkExtension project? Somehow alter formatter and make a PR there?
    Christophe Coevoet
    @stof
    @crossan007 Mink repositories have been moved to the minkphp organization in 2014
    to keep repos more organized (as Mink involves quite a bunch of repos)
    Charles Crossan
    @crossan007
    @stof oh, haha. Thanks!
    Peter Anderson
    @BWPanda
    How does Behat determine what order tests are run in? i.e. in what order are *.feature files read?
    Peter Anderson
    @BWPanda
    I found out that features are read alphabetically, including subfolders.
    Jakub Zalas
    @jakzal
    @BWPanda worth to mention you shouldn't make assumptions in what order features are run
    assume random
    Peter Anderson
    @BWPanda
    @jakzal OK, good to know, thanks.
    rgristroph
    @rgristroph
    Hi Folks ! I am trying to track down why my Behat tests increase in memory usage for every test run. I'm using Behat v3.3.1 , on a Drupal 8 project, and with 6 simple tests the memory usage increases to a GB or so. Interestingly, it only does this on my travis test environment and not locally, as far as I can tell. It's not one test, it increases by 100 MB or so with each test I add. I'm not having luck trying to isolate a difference between the travisci environment at my local. Any suggestions ?
    Abdullah Bakhach
    @abbood
    Hey guys my Behat hangs when there are multiple scenarios, but works on a single one
    callksingh
    @callksingh
    Hello Guys, anyone has sample Behat-Selenium-PHP project? please share that.
    callksingh
    @callksingh
    Any help would be much appreciated
    callksingh
    @callksingh
    I am getting Element not found with xpath, //html
    (WebDriver\Exception\NoSuchElement) while running the behat/php/selenium
    Can anyone help please?
    Lazar Gluvacki
    @NebojsaKo_twitter
    Hey guys, how could I modify method setupData so that it setups only data which is needed, not everything? This is a performance issue? Isn't it?
    PurHur
    @PurHur
    Sorry if this question is rude here... But is there a more active community to talk about the newest extension development for behat?
    Antoine THOMAS
    @ttoine
    /quit
    PurHur
    @PurHur
    No ;_;
    Lazar Gluvacki
    @NebojsaKo_twitter
    Background: # src/Sity/AppBundle/Features/Test/AdminIconWidget.feature:9
    127.0.0.1 - 25/Sep/2019:12:55:54 +0000 "GET /app.php" 500
    Given I log in as "admin" # Sity\AppBundle\Features\Context\FeatureContext::iLogInAs()
    Button with id|name|title|alt|value "_submit" not found. (Behat\Mink\Exception\ElementNotFoundException)
    I can see that I am using different port of my nginx server
    And it is 127.0.0.1:9222.
    How can I change this in behat?
    Behat\MinkExtension:
    browser_name: chrome
    base_url: 'http://127.0.0.1:9222'
    default_session: chrome
    selenium2: ~
    files_path: src/Sity/AppBundle/Features/Features/Media/
    sessions:
    chrome:
    chrome:
    api_url: "http://127.0.0.1:9222"
    This is my behat/MinkExtension
    Lazar Gluvacki
    @NebojsaKo_twitter
    There isn't too much activity in this group.
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    Hi everybody, I have a question about how to change the default context classes paths?
    I tried to follow the docs without success, thanks in advance.
    Mohamed Cherif Bouchelaghem
    @cherifGsoul
    I got it, I was overthinking it a little, I just have to add autoload to my behat.yml
    Nino Paolo
    @paoloooo_twitter
    hi guys, quick question, how can I load a bootstrap.php config file in behat.yml?
    Nino Paolo
    @paoloooo_twitter

    Found it! I can do it in two ways:

    # behat.yml
    default:
        extensions:
            features/extensions/MyAwesomeExtension.php: ~

    Or, in featured context

    <?php
    
    \\ ...
    
    if (file_exists(__DIR__ . '/../support/bootstrap.php')) {
        require_once __DIR__ . '/../support/bootstrap.php';
    }
    
    class FeatureContext extends BehatContext implements Closured, Translated
    {
        \\ ..
    hmonglee
    @hmonglee
    Hello, i'm trying to find node with $node = $this->getSession()->getPage()->find('css', '.jConnexion > a'); but always return null :s When I return the entire content I found the class .jConnexion, do you have any idea ?
    achreftlili
    @achreftlili
    hello, everybody, I have a Rest API that contain file upload endpoint that Iwanna test, but I can't find examples to guide me, help :( lol !!
    thanks :)