What is Assertion in Selenium | Selenium JavaScript Tutorial | LambdaTest

  Рет қаралды 9,221

LambdaTest

LambdaTest

Күн бұрын

Пікірлер: 25
@marina305
@marina305 3 жыл бұрын
Thanks a lot! Ryan is one of the best teacher of this topic:)
@LambdaTest
@LambdaTest 3 жыл бұрын
Thanks Marina
@udosamuel653
@udosamuel653 3 жыл бұрын
Thanks a lot for this. I like how you go slowly explain stuff in details. I am a beginner that really want to learn test automation. Keep up the good work.
@LambdaTest
@LambdaTest 3 жыл бұрын
Thanks udo for your kind words
@pabloperalta1994
@pabloperalta1994 9 ай бұрын
I had to downgrade the chai version to 4.2.0 by changing it on the package.json file and running an npm install. Soo it would run with the import you use in the video.
@LambdaTest
@LambdaTest 8 ай бұрын
Hi there! Thanks for sharing your experience. It's great to hear that you found a solution by downgrading the chai version to 4.2.0. This is indeed one way to resolve compatibility issues with certain imports. For anyone else encountering similar issues, this approach can help maintain compatibility with the code shown in the video. If you have any more questions or need further assistance, feel free to ask. Happy coding!
@inkybox1561
@inkybox1561 7 ай бұрын
This worked perfectly, thank you!
@ericrogers5559
@ericrogers5559 3 жыл бұрын
Thanks so much for these videos! They have helped me understand these tools and their ability to test far more than before. Thanks again, Ryan! Please do some automation videos for electron and selenium. :D
@LambdaTest
@LambdaTest 3 жыл бұрын
Glad it was helpful!
@MrCrowleyA
@MrCrowleyA Жыл бұрын
Oh dude, I love you :D Thanks!
@LambdaTest
@LambdaTest Жыл бұрын
🧘🏻‍♂️✨
@mac-cx9cy
@mac-cx9cy 5 ай бұрын
Thanks for the video
@LambdaTest
@LambdaTest 5 ай бұрын
Glad you liked it!
@iuliiaprusakova73
@iuliiaprusakova73 Жыл бұрын
Thank you so much
@LambdaTest
@LambdaTest Жыл бұрын
I'm glad you enjoyed the video! Subscribe to our channel to never miss an update on the upcoming tutorials! ✨
@thanhnhanhuynh2240
@thanhnhanhuynh2240 3 жыл бұрын
Thank alot
@Bellatrix2606
@Bellatrix2606 Жыл бұрын
Your vids are a lifesaver! Thank you! What should I type if I'm going to use just assert style? var assert = require("chai"); -> this doesn't feel right, since assert variable was already created?
@LambdaTest
@LambdaTest Жыл бұрын
Hey Bellatrix 👋🏻 Thank you for liking our videos ❤️ If you want to use just the assert style with Chai, you can use var assert = require("chai").assert; This will import only the assert style from the Chai library and assign it to the assert variable. You can then use the assert variable to write your assertions in your test code.
@Bellatrix2606
@Bellatrix2606 Жыл бұрын
@@LambdaTest wait, but line higher there is constant variable called assert, so I shouldn't be able to overwrite it with new code. Or with chai I don't need built-in assert?
@Bellatrix2606
@Bellatrix2606 Жыл бұрын
Aaah, just watched my answer in the next video! You were reading my mind a year ahead! 😂 Thank you again!
@aktar749
@aktar749 3 жыл бұрын
let todoText= await driver.findElement(By.xpath("//li[last()]")).getText().then(function(value){ return value }); how do this code works and not give you assertion error????
@LambdaTest
@LambdaTest 3 жыл бұрын
Hey Ali, Let us get back to you on this.
@aktar749
@aktar749 3 жыл бұрын
I dont think this is a valid xpath.
@ericrogers5559
@ericrogers5559 3 жыл бұрын
Why would this give you an assertion error? Can you share the actual error?
@LambdaTest
@LambdaTest 3 жыл бұрын
Ali, This Code snippet only reads the text from the web page and returns it as a variable. There is no assertion added here.
TestNG Tutorial #4 - How to Use Assertion in Selenium TestNG
13:24
Software Testing Mentor
Рет қаралды 59 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Selenium in JavaScript: Part 1 (Hello, World!)
9:58
SteamCode
Рет қаралды 33 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
3 | Record & Playback using Selenium IDE | Selenium Python
16:25
Automation Step by Step
Рет қаралды 20 М.
JavaScript Event Loop: How it Works and Why it Matters in 5 Minutes
7:20
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН