Selenium with C# 62 - Selenium Data Driven Testing in MS Test using DataRow & DynamicData attributes

  Рет қаралды 7,482

Ankpro Training

Ankpro Training

Күн бұрын

Пікірлер: 24
@AnkproTraining
@AnkproTraining 4 жыл бұрын
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. goo.gl/hFueBi
@kairoraiden6524
@kairoraiden6524 3 жыл бұрын
you prolly dont care but if you are stoned like me atm then you can watch pretty much all the new movies and series on kaldrostream. Have been binge watching with my brother for the last days =)
@franciscomohamed4095
@franciscomohamed4095 3 жыл бұрын
@Kairo Raiden definitely, I've been watching on instaflixxer for years myself :)
@pavankumar-qc3dg
@pavankumar-qc3dg 4 жыл бұрын
Thanks a lot for uploading this concept video!
@excellins
@excellins Жыл бұрын
clear and informative. thanks for this
@AnkproTraining
@AnkproTraining Жыл бұрын
Thanks Collins. Please subscribe to our channel. Like and share the video.
@Naveedali-yo2gg
@Naveedali-yo2gg 3 жыл бұрын
Welcome keep up the good work.cheers
@AnkproTraining
@AnkproTraining 2 жыл бұрын
Please share this video link in your network via WhatsApp, LinkedIn, Facebook or Twitter
@uppalapatipavan9513
@uppalapatipavan9513 3 жыл бұрын
Clear information thank you.
@AnkproTraining
@AnkproTraining 3 жыл бұрын
Thank you for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
@Crimestories2707
@Crimestories2707 3 жыл бұрын
Hello i tried to run your code [DataDrivenTestingUsingDataRow method ] however i got "no such elementexception " unable to locat element. Can not find what is the actual issue ? My all xpath is correct. Plz help
@Crimestories2707
@Crimestories2707 3 жыл бұрын
[TestClass] public class UnitTesting { [TestMethod] [datarow("sur@ins.com", "Password@123")] [datarow("yog@ins.com", "In@12345")] public void DataDrivenUsingRowData(string email, string password) { IWebDriver driver = new ChromeDriver(); driver.Manage().Window.Maximize(); driver.Url = "localhost:4200/_f/login"; driver.FindElement(By.Id("emailAddress")).SendKeys(email); driver.FindElement(By.Id("password")).SendKeys(password); driver.FindElement(By.XPath("//button[@id='loginButton']")).Click(); driver.Quit(); } [DynamicData(nameof(GetData), DynamicDataSourceType.Method)] [TestMethod] public void DataDrivenUsingDynamicData(string email, string password) { IWebDriver driver = new ChromeDriver(); driver.Manage().Window.Maximize(); driver.Url = "localhost:4200/_fin/login"; driver.FindElement(By.Id("emailAddress")).SendKeys(email); driver.FindElement(By.Id("password")).SendKeys(password); driver.FindElement(By.XPath("//button[@id='loginButton']")).Click(); driver.Quit(); } public static IEnumerable GetData() { yield return new object[] { "sur@ins.com", "Password@123" }; yield return new object[] { "yog@ins.com", "In@12345" }; } } }
@AnkproTraining
@AnkproTraining 3 жыл бұрын
The exception is nothing to do with the data driven testing. Please re verify your locator and try again.
@AnkproTraining
@AnkproTraining 3 жыл бұрын
@@Crimestories2707 for button also use find by ID locator
@Crimestories2707
@Crimestories2707 3 жыл бұрын
Facing same issue Only my browser will launch and blank. But i used debugger then i checked it will work. But when i run the test case facing same issue. Can you share ur mail id so i can share the screenshots as well. Plz help
@AnkproTraining
@AnkproTraining 3 жыл бұрын
@@Crimestories2707 do you have the chrome driver and chrome version same?
@makiyatow3286
@makiyatow3286 3 жыл бұрын
Hello! I tried to run your code (DataDrivenTestingUsingDataRow method) however, I got "No arguments were provided" return message. I'm not really quite sure what's the issue, is it something to do with the drivers I've installed? Thank you!
@AnkproTraining
@AnkproTraining 3 жыл бұрын
Can you paste your code here, I will take a look at it.
@makiyatow3286
@makiyatow3286 3 жыл бұрын
@@AnkproTraining thank u! Was able to sort it out. I had nunit framework instead of mstest hehe, I was able to run ur code using both of them. Again, thank u for ur vlogs!
@Naveedali-yo2gg
@Naveedali-yo2gg 3 жыл бұрын
Can you plz provide the explanation (answers) or notes for possible interview questions?
@AnkproTraining
@AnkproTraining 3 жыл бұрын
You can check in the video description. Thank you for watching and commenting. Please share this video in your circle via WhatsApp, Facebook and Twitter.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
1. How to Find Row Count in Excel using  Selenium WebDriver C# | Excel Read in C# | Data Driven Test
31:09
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19