#09 | Wait Strategy | WebdriverIO Mocha Framework
HTML-код
- Опубликовано: 8 сен 2024
- In this video, we will learn how to handle synchronisation issue of web app with different wait strategy.
In this tutorial series, we will be building a fully functional test automation framework in TypeScript using WebdriverIO and integrate our tests with Mocha, Allure Report.
Important Link:
------------------------
webdriver.io/d...
webdriver.io/d...
webdriver.io/d...
webdriver.io/d...
webdriver.io/d...
Git Repository: github.com/tes...
Connect with me on LinkedIn: / sadabnepal
#webdriverio #typescript #nodejs #wdio #mocha #async #testingvideo #videotutorial #testing #testautomation #designpatterns
nice subject. thanks for sharing
I am more looking forward for how to handle failures. Like in wdio what I have observed that in script it is not performing certain actions but still test cases shows passed in result. Is it mandatory to wrap the codes in try catch block everytime in page file and in test cases it blocks also? And also sometimes it does not show at what point it got failed because no line number it shows.
async and await you have to use carefully, if you miss to write await in appropriate places then your test will pass but in actual it won't execute. i barely use try catch in page class. over doing try catch can make your code less readable and also complicated the code. For the failure of exact lines it depends on the type of issue you facing, if you have assertion failure or failed to find element, perform click or so on then you get exact line of error but if issue is due to some config or nodejs related then you may not get the correct line. I will see if i can cover these in upcoming videos.
@@TestAutomationHub great that will really helpful. Also I will try to come up with some example to show you the code so that you can also check it at your end. Thanks Man!
@@nikhilgupta5721 please do share the code link in linkedin
Hi why you always exports the class after creating it in Page Object folder?
page class are meant to be imported and used in test so if we need to make any class/function visible outside of the file we need to export it.