Part20: WebdriverIO with TypeScript - Custom Download Directory

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • #webdriverio #typescript #nodejs #beginners #bddframework #wdio #async #wdio7 #webdriveriocucumber #downloadfile
    In this video, we will see how we can change download directory from default system folder to custom folder.
    In this tutorial series, we will be building a fully functional test automation framework in TypeScript using WebdriverIO and integrate our tests with Cucumber, Allure Report.
    Important Link:
    ------------------------
    Chrome Options: chromedriver.c...
    Git Repository: github.com/tes...
    Connect with me on LinkedIn: / sadabnepal

Komentáře • 23

  • @shobanadevi5517
    @shobanadevi5517 Před 5 měsíci

    Very clearly explained. Thank you!

  • @sharmavinayrocks
    @sharmavinayrocks Před 3 lety

    Waiting for the next part..

  • @debarunbiswas3247
    @debarunbiswas3247 Před měsícem

    Hi Sir,
    It is not working for Edge browser, Thank you.

  • @sumitachoubey8821
    @sumitachoubey8821 Před 2 lety +1

    Will this work if we have to run our automation suite remotely?

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety +1

      file will be downloaded from web app and stored inside framework so ideally it should work for remote run as well.

    • @sumitachoubey8821
      @sumitachoubey8821 Před 2 lety

      @@TestAutomationHub Will this work only for wdio 7?

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@sumitachoubey8821 no it will work for other version as well but if you are not using async mode then code might change a bit (await keyword)

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      @@sumitachoubey8821 other version too it will work

  • @PurellMe
    @PurellMe Před 3 lety +1

    Well done presentation but can you explain what is goog?

    • @TestAutomationHub
      @TestAutomationHub  Před 3 lety

      Hey Ken, goog:chromeOptions is dictionary that is exposed. I guess goog meant to for google (not sure though). Check 3:10 (timestamp ) of this video.

    • @PurellMe
      @PurellMe Před 3 lety

      @@TestAutomationHub Thanks

  • @suryatejaperuru4409
    @suryatejaperuru4409 Před rokem

    Hi Thanks for the video...
    I try to implement same but am getting TypeError : Cannot read properties of undefined (reading 'join'). Can you please kindly help how to resolve this error

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      have you imported path ? it should be as below
      import path from 'path'

  • @saivikas951
    @saivikas951 Před rokem

    Could you please make a video on how to delete the downloaded file after every scenario

    • @TestAutomationHub
      @TestAutomationHub  Před rokem

      next video of the series (part21) will help to create util to delete file. if you want to delete after each scenario just add the function inside afterScenario() block of wdio.conf file

  • @archanamuthukrishnan6465

    Hi can you please let me know ,
    How to download pdf whose download icon is not inspected by webelement ?

    • @TestAutomationHub
      @TestAutomationHub  Před 2 lety

      as discussed in group, try with shadow dom locator.
      for e.g.
      await $('locator').$shadow('locator').$shadow('locator').click()

    • @kirandeepkaur6643
      @kirandeepkaur6643 Před 2 měsíci

      With above element , pdf is still not able to download, could you please explain how you did it?

  • @shubhangishegokar3602
    @shubhangishegokar3602 Před 9 měsíci

    For me downloads folder didnt created

    • @TestAutomationHub
      @TestAutomationHub  Před 3 měsíci

      In new version its changed due to change in chrome.

    • @kirandeepkaur6643
      @kirandeepkaur6643 Před 2 měsíci

      could you please suggest how to download the pdf with new version of chrome