Expect Assertions - WebdriverIO Tutorial | #4

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 41

  • @anandsharma9159
    @anandsharma9159 4 роки тому +1

    Exactly the tutorial I needed. Thanks for the videos. Looking forward to complete the whole course.

  • @sviatlana_
    @sviatlana_ 2 роки тому +1

    Thank you very much for the video🙂 It's very useful!

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Glad you enjoyed the content.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help you solve common issues that you face with automation.
      sdetunicorns.com/courses/

  • @ElsayedAlhanafy
    @ElsayedAlhanafy 3 роки тому

    Really thanks a lot for this series it's updated & it's concluding many long courses on webdriverIO

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Thank you, check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help solve common issues that one face with automation.
      sdetunicorns.com/courses/

  • @alejandrochan3117
    @alejandrochan3117 3 роки тому +1

    amazing tutorial , thanks you so much !

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help solve common issues that one face with automation.
      sdetunicorns.com/courses/

  • @tester4044
    @tester4044 3 роки тому +1

    Thanks a lot! Its very useful for me

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help solve common issues that one face with automation.
      sdetunicorns.com/courses/

  • @DIEZ919191
    @DIEZ919191 3 роки тому

    Many thanks for your tut !!! Really great and unique content!! I have only one remark about the video, it would be nice if you change dev tools scale parameter, it would make it easier to watch on mobile. Anyway, thank you one more time for your efforts and I wish your channel many many new subs and views! :)

    • @sdetunicorns
      @sdetunicorns  3 роки тому

      Noted! Will keep that in mind for the upcoming videos.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help solve common issues that one face with automation.
      sdetunicorns.com/courses/

  • @PaulGrossmanTheDarkArtsWizard
    @PaulGrossmanTheDarkArtsWizard 2 роки тому

    One question I have is how does WebDriverIO handle softAsserts with expect?
    If your demo were to fail the first expect, would the remaining three assertions still execute?
    Or would the test just stop dead?
    With softAsserts all validations execute regardless if they fail.
    I prefer softAssets as it gives me a better estimation at Planning Sessions if I know how much of my test, or test suite, is failing.

    • @sdetunicorns
      @sdetunicorns  2 роки тому +1

      Hi Paul, there's no in-built support for soft asserts as ofd now but you can use any external library if you want. For ex - www.npmjs.com/package/soft-assert

  • @tanyasharma4836
    @tanyasharma4836 Рік тому

    Hi , I have updated some dependencies while updating from webdriverio 7 to 8 and currently I am getting error related to wdio selenium standalone service..Error is Selenium exited before it could start with code 0.
    Can you please help me in this?
    Thanks😊

  • @bensmith6987
    @bensmith6987 3 роки тому

    Amazing tutorials. Somehow my tests are going through too fast to see the processes. How about failing some tests by tempering around with elements and method??? Thank you.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      If you want to debug something while the test are running, you can throw browser.pause(2000) (This will pause the test for 2 seconds) to pause the test. Make sure to remove them after debugging as it is not best practice to keep them in your tests.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      If you want to learn more, check out my full course on webdriveIO and it will also get you access to a Discord community that can help you solve common issues that you face with automation.
      sdetunicorns.com/courses/

  • @dilipjadav4442
    @dilipjadav4442 3 роки тому

    can you make video tutorial on cucumber framework with webdriverio

  • @playandfun7446
    @playandfun7446 4 роки тому

    Hi,
    I am building a new framework and currently I am using the Chai 'assert.equals' assertion. what would be your suggestion... should I use Chai's assert.equals or expect. what are the benefits of expect over Chai assertion. Thank you!

    • @sdetunicorns
      @sdetunicorns  4 роки тому +2

      My first preference is always expect and if expect doesn't do the job then I look into Chai assertions. Expect has waits and intervals when it's checking for assertions which comes in really handy as you dont have to add manual waits everywhere.

  • @amardeepsingh8866
    @amardeepsingh8866 3 роки тому

    hey dilpreet , do you know where are we with sync/async confusion? , as they will discontinue sync mode

    • @sdetunicorns
      @sdetunicorns  3 роки тому

      Yes, they are discontinuing the sync mode and we need to start using async mode starting node v16. If you would like to learn how async mode works, you can check out this course that I put together on Udemy -
      www.udemy.com/course/webdriverio-complete-beginner-course/?couponCode=AUTOMATIONBRO-CODE

    • @sdetunicorns
      @sdetunicorns  Рік тому

      Check out my full course on webdriveIO if you are interested. It will also get you access to a Discord community that can help you solve common issues that you face with automation.
      sdetunicorns.com/courses/

  • @tanyasharma4836
    @tanyasharma4836 Рік тому

    Hi
    I have updated dependencies while updating webdriverio version from 7 to 8
    When I tried to run my scripts then I got error with expect condition. It said expected 1 argument but got 2.
    I was using expect: Expect(element).isdisplayed.tobe(true, 'custom error message')
    but now after updating dependencies it is not allowing to enter custom error message.
    Do you have any idea on this?
    Like which reason has caused this?

    • @sdetunicorns
      @sdetunicorns  Рік тому

      You can use this assertion instead - await expect(elem).toBeDisplayed({message: 'Custom message'});

    • @tanyasharma4836
      @tanyasharma4836 Рік тому +1

      @@sdetunicorns ok, I will try this. Thank you so much!

    • @sdetunicorns
      @sdetunicorns  Рік тому

      @@tanyasharma4836 no problem. Let me know how it goes. 😺

    • @tanyasharma4836
      @tanyasharma4836 Рік тому +1

      @@sdetunicorns I think so it worked because I didn't get any error for that.

    • @tanyasharma4836
      @tanyasharma4836 Рік тому +1

      @@sdetunicorns I will recheck once my other errors get resolved and I execute scripts

  • @JagjeetSingh-pe7ow
    @JagjeetSingh-pe7ow 4 роки тому

    How would select attributes like "alt" if the id is not present and classes are common?

    • @sdetunicorns
      @sdetunicorns  4 роки тому +1

      You can build your own custom selector in that case -> img[alt="image text"]

  • @AmanSharma-k5e
    @AmanSharma-k5e Рік тому

    how to apply soft Assertions

  • @ajaythombare5898
    @ajaythombare5898 3 роки тому

    tohaveURl