Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Christian Wolf
    @christian.wolf_gitlab
    Hi everyone, i have a problem running our codeJS tests on a real iphone via browserstack. It looks like the initial timeout parameter unit is not sent correct. see error msg: [HTTP] --> POST /wd/hub/session/e0376a53-e892-4927-8bbd-6c413abb903d/timeouts {"script":1000}
    [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {"required":["type","ms"]} and you sent ["script"]
    does anyone have an idea what causes the error and how to fix it?
    Alexandr Vorobey
    @Vorobeyko

    Hi!
    When I generated steps.d.t file contains :
    type ICodeceptCallback = (i: CodeceptJS.I, Select:CodeceptJS.Select, Input:CodeceptJS.Input, ...args: any) => void;
    Where the hard order arguments.
    Test

    Before(async (I, Input, Select) => {
      await I.amOnPage(stories('Employment'))
      // Input - contains Select methods
      // Select - contains Input methos
      I.changeSelectOption('Выберите тип занятости', 'Не работаю')
    })

    How you solved this problem? (edited)

    Evgenii
    @MavCKwyT
    hi all Why can't I use this?
    Selection_015.png
    Selection_016.png
    Peter Nguyen Tr
    @PeterNgTr
    you should add REST helper
    Evgenii
    @MavCKwyT
    @PeterNgTr It's added, but still the same
    @PeterNgTr }, helpers: { Puppeteer: { show: true, waitForNavigation: ["domcontentloaded", "networkidle0"], waitForAction: 500, windowSize: '1920x1080', chrome: { args: ['--no-sandbox', '--window-size=1920,1080'], }, REST: {}, }, REST: {}, }, REST: {}, };
    Peter Nguyen Tr
    @PeterNgTr
    Evgenii
    @MavCKwyT
    @PeterNgTr I read
    Peter Nguyen Tr
    @PeterNgTr
    what is the error you have?
    Evgenii
    @MavCKwyT
    @PeterNgTr unresolved function or method
    @PeterNgTr I'm doing something wrong.
    but what is it
    Peter Nguyen Tr
    @PeterNgTr
    you send blank endpoint? maybe!
    Evgenii
    @MavCKwyT
    @PeterNgTr I think the problem is something here
    Selection_017.png
    It's like he doesn't see the method I.sendDeleteRequest('/api/users/1');
    Peter Nguyen Tr
    @PeterNgTr
    it should be the same level with Puppeteer helper
    Evgenii
    @MavCKwyT
    @PeterNgTr ok i ll try it
    @PeterNgTr It's there
    but still
    Peter Nguyen Tr
    @PeterNgTr
    did you remove other RESTs?
    Evgenii
    @MavCKwyT
    @PeterNgTr yep. Maybe it should be imported into a test file?
    my demo project using REST.
    Evgenii
    @MavCKwyT
    @PeterNgTr All right. Thanks for your help. Not working yet. I will look for the reason.
    Christian Wolf
    @christian.wolf_gitlab
    @MavCKwyT Are you sure that other I... commands are working in your scenario? like I.say("something") works? If so, your configuration ist still not correct. Maybe you can provide another screenshot of the whole codecept.conf.js file?
    Lalit Sukhwal
    @lalit29
    image.png
    Test getting failed in codecept
    Quinn Wilson
    @lunky
    can someone tell me what codecept_helper is? is it a global ?
    dmred
    @dmred
    Hello, everyone! have you ever face the problem when you need your tests to return 0 in any case (even when some cases failed)? How make codeceptJS to force return 0?
    dmred
    @dmred
    HEEEEEEEELP
    Peter Nguyen Tr
    @PeterNgTr
    please ask in the slack channel. More active people are there :)
    Vladislav
    @MegaaVladd
    Hi everyone, please help me, codeceptjs doesn't stop tests when it can't find element, it just keep waiting for
    please join slack, better place to ask.
    Venkatesh Pattamatta
    @venkatesh.pattamatta_gitlab
    How can I get all the links in a webpage? In Java we could use the getElement but in codeceptJS I am unable to. I tried to use the locators but couldn't. Can anyone add a snippet of code? Really appreciate it!
    Peter Nguyen Tr
    @PeterNgTr
    Hey, I think it’s possible but you should write your own function to loop thru the locators that contain href and get that value.
    chirag-farfetch
    @chirag-farfetch
    chirag-farfetch
    @chirag-farfetch
    ?
    chirag-farfetch
    @chirag-farfetch
    @chirag-farfetch
    having issues with running multiple apps at the same time to do end to end testing - it is this one - https://stackoverflow.com/questions/59610529/connecting-two-appium-apps-at-the-same-time-and-doing-end-to-end-tests-on-them
    able to work with 1 app and 1 browser. however when i add one more app it does not work
    can anyone help?
    Peter Nguyen Tr
    @PeterNgTr

    How can I get all the links in a webpage? In Java we could use the getElement but in codeceptJS I am unable to. I tried to use the locators but couldn't. Can anyone add a snippet of code? Really appreciate it!

    oh, this would work

    let urls = await I.grabAttributeFrom('//*[@href]', 'href');
    lewis150193
    @lewis150193
    Has anyone been able to get firefox running with codeceptJS and Saucelabs for testing a local website on HTTPS. I have tried and it wont allow access because of SSLCerts. Any help would be amazing.
    chirag-farfetch
    @chirag-farfetch
    Bartlomiej Obecny
    @obecny
    Hi guys, is it possible to get window or execute script (I need to clear local storage) - so far running "Puppeteer" with option show: true
    lewis150193
    @lewis150193
    Hello, has any used a proxy with safari or firefox and know the configuration for desireableCapabilities to do so?
    This is to use alongside sauce labs
    Anton Svetin
    @hotantuna

    Hi, is this possible to run with WSL and puppetter. Current options set are

          url: 'https://global.id',
          show: true,
          chrome:{
            executablePath: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',
            userDataDir: 'mnt/c/tmp/puppeteer_dev_profile',
            args: ['--no-sandbox', '--disable-setuid-sandbox'],
            devtools: true
          }

    But I am getting error Error: [Wrapped Error] connect ECONNREFUSED 127.0.0.1:65113