Part20: WebdriverIO with TypeScript - Custom Download Directory
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
Very clearly explained. Thank you!
Waiting for the next part..
tonight will be posting next video
Thanks for the prompt response, waiting..😃
Hi Sir,
It is not working for Edge browser, Thank you.
Will this work if we have to run our automation suite remotely?
file will be downloaded from web app and stored inside framework so ideally it should work for remote run as well.
@@TestAutomationHub Will this work only for wdio 7?
@@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)
@@sumitachoubey8821 other version too it will work
Well done presentation but can you explain what is goog?
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.
@@TestAutomationHub Thanks
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
have you imported path ? it should be as below
import path from 'path'
Could you please make a video on how to delete the downloaded file after every scenario
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
Hi can you please let me know ,
How to download pdf whose download icon is not inspected by webelement ?
as discussed in group, try with shadow dom locator.
for e.g.
await $('locator').$shadow('locator').$shadow('locator').click()
With above element , pdf is still not able to download, could you please explain how you did it?
For me downloads folder didnt created
In new version its changed due to change in chrome.
could you please suggest how to download the pdf with new version of chrome