Hey Syeda, Glad that you are watching our videos and coming up with suggestions. We are in the process of creating new videos with Selenium 4. Will keep you posted
Hi Jeel, Glad you liked the video :) While we currently support version 4.12 at LambdaTest, we are actively working on creating more content around it. In the meantime, you can explore our blog post on Selenium 4.11.0 here: www.lambdatest.com/blog/selenium-manager-in-selenium-4-11-0/. Additionally, @faisalkhatriqa (who frequently contributes to LamdaTest Blog) has created a video tutorial covering Selenium 4.12, which you can watch here: ua-cam.com/video/uHLYoJmZxWc/v-deo.html. Since there are no changes in RemoteWebDriver, you can also try version 4.12.0 on LambdaTest.
Naredla, There is no rule of thumb to use SpecFlow. However, our recommendation is to use BDD frameworks (like SpecFlow) to test out business (or domain level) requirements. The requirements purely depend on the project type. Having said that, you could still use SpecFlow for unit testing if the intent is to write unit tests that take the behavioral aspects (something offered by BDD) into consideration. You might also need to look into mocking SpecFlow’s ScenarioContext (in case required). Before closing, can you please share your use case so that we can help you further?
Tests are not displayed in the Test Explorer. I added NUnit3TestAdaptor, config file is updated with "MSTest" for unitTestProvider but still test is not getting displayed in the TE. Any thoughts on how I can get this working. Thanks
@Diyer Can you try below points . 1. Install MSTest TestAdapter 2. Build the entire project once you add new Test . 3. Check Test Methods are public 4. Upgrade all NuGet packages
@@LambdaTest figured out the issue, it is just that the Group Summary section in the Test Explorer was set wider than the Test details section. So I undocked the TE and opened full size then I could see the Test Details section on the side. So I had to dock it to the bottom to be able to see the Test Details section. Thank you for your help
Hi Sindu, WPF applications are Client Applications that run on the Windows platform. Selenium Supports only Web-based Application Testing. However, you can still use Spec Flow as its help to Write BDD Scenarios.
Hello, You can install SpecFlow in VS Code by installing the C# extension. Search for and install the SpecFlow for VS Code extension and configure SpecFlow to add the necessary dependencies to your project. Finally, write and run SpecFlow tests using the Gherkin syntax and appropriate test runner.
Hey there 👋🏻 Please refer to the following link for LambdaTest support doc www.lambdatest.com/support/docs/specflow-with-selenium-running-specflow-automation-scripts-on-lambdatest-selenium-grid/
Hi Sona, If you mean the "localhost:4444/wd/hub" at minute 11:05 of the video, that is the url of the browser driver that is running on presenter's system. In the video, a few seconds right after that, you will see that he points to a powershell prompt window which shows it is running GeckoDriver service which is developed by FireFox. You can see more info on these URLs: www.selenium.dev/documentation/webdriver/getting_started/ www.selenium.dev/documentation/webdriver/getting_started/install_drivers/
I followed your instructions to the letter, but there is no "generate step definitions" option in the contex menu when i right click anywhere in the feature file, any tips?
Hi, really great video. I have a doubt for the below one: in a web based application having 100 respondents each respondent have different ids. i have to run my test cases for all respondents using id which are listed in test data file. file consists of 100 respondent ids, using this file i have to select an id in backend and run the application. here i have to choose the id before the application launched. so, in this case can we use Before feature hook to access that file to select option in backend. is it possible for specflow hooks to access the data from file. Please provide answer for this🙏🙏🙏
I am using a Mac and using visual studio 2022. I can't generate step definition because when i right click the editor, there is no option "Generate step definition". Anyone can help guys?
Copy and pasting example code is not as informative as going through code and replacing things, and explaining what you are replacing and why. Anyone can go to a sample site and copy/paste code, but the value added here should be in explanation and showing why things are to be modified. I think this misses the mark in helping people understand why things are done, due to this.
Hey Sean 👋🏻 Thank you for taking the time to provide feedback on the video. We understand the importance of providing a detailed explanation of the code and the concepts involved. We will take your feedback into consideration and try to improve our future videos by providing more detailed explanations of the code including the changes and concepts involved.
Waiting to get a video on SpecFlow Page Object Model as from 3.11 version of Selenium C# Bindings, Page Factory is deprecated!
Hey Syeda,
Glad that you are watching our videos and coming up with suggestions. We are in the process of creating new videos with Selenium 4. Will keep you posted
Hey it's a good informative video. Just wondering about selenium 4.12 have you make any automation with 4.12 using lambda test ?
Hi Jeel,
Glad you liked the video :)
While we currently support version 4.12 at LambdaTest, we are actively working on creating more content around it. In the meantime, you can explore our blog post on Selenium 4.11.0 here: www.lambdatest.com/blog/selenium-manager-in-selenium-4-11-0/. Additionally, @faisalkhatriqa (who frequently contributes to LamdaTest Blog) has created a video tutorial covering Selenium 4.12, which you can watch here: ua-cam.com/video/uHLYoJmZxWc/v-deo.html.
Since there are no changes in RemoteWebDriver, you can also try version 4.12.0 on LambdaTest.
Thanks @LambdaTest for sharing the video link..
You're welcome! Glad you found the video link helpful. If you have any questions or need further assistance, feel free to reach out. Happy learning!
Hi, can you do same testing in unit test project.. That mean can u pick unit test project and build specflow execution..
Hey Naredla, let us get back to you on this!
Naredla,
There is no rule of thumb to use SpecFlow. However, our recommendation is to use BDD frameworks (like SpecFlow) to test out business (or domain level) requirements. The requirements purely depend on the project type.
Having said that, you could still use SpecFlow for unit testing if the intent is to write unit tests that take the behavioral aspects (something offered by BDD) into consideration.
You might also need to look into mocking SpecFlow’s ScenarioContext (in case required).
Before closing, can you please share your use case so that we can help you further?
Tests are not displayed in the Test Explorer. I added NUnit3TestAdaptor, config file is updated with "MSTest" for unitTestProvider but still test is not getting displayed in the TE. Any thoughts on how I can get this working. Thanks
Hi Diyer, Let us get back to you on this
Okay, thank you. Let me know. I tried lot of the suggestions from Stack Overflow but none of them worked for me.
@Diyer
Can you try below points .
1. Install MSTest TestAdapter
2. Build the entire project once you add new Test .
3. Check Test Methods are public
4. Upgrade all NuGet packages
@@LambdaTest figured out the issue, it is just that the Group Summary section in the Test Explorer was set wider than the Test details section. So I undocked the TE and opened full size then I could see the Test Details section on the side. So I had to dock it to the bottom to be able to see the Test Details section.
Thank you for your help
Glad to see the video compiled pretty well !
Thanks Karthik :)
Can we use this combination for WPF application. C# + selenium + spec flow.
Hi Sindu, let us get back to you on this
Hi Sindu, WPF applications are Client Applications that run on the Windows platform. Selenium Supports only Web-based Application Testing. However, you can still use Spec Flow as its help to Write BDD Scenarios.
Can we install specflow in vs code?
Hello,
You can install SpecFlow in VS Code by installing the C# extension. Search for and install the SpecFlow for VS Code extension and configure SpecFlow to add the necessary dependencies to your project. Finally, write and run SpecFlow tests using the Gherkin syntax and appropriate test runner.
Hi, I couldn't find the support document. Can you share it please?
Hey there 👋🏻
Please refer to the following link for LambdaTest support doc www.lambdatest.com/support/docs/specflow-with-selenium-running-specflow-automation-scripts-on-lambdatest-selenium-grid/
hi what is the local host vale given in the driver class please ..what should i give for my test ..could u please explain that
Hi Sona,
Can you elaborate more on your question?
Hi Sona,
If you mean the "localhost:4444/wd/hub" at minute 11:05 of the video, that is the url of the browser driver that is running on presenter's system. In the video, a few seconds right after that, you will see that he points to a powershell prompt window which shows it is running GeckoDriver service which is developed by FireFox. You can see more info on these URLs:
www.selenium.dev/documentation/webdriver/getting_started/
www.selenium.dev/documentation/webdriver/getting_started/install_drivers/
@@armanhatefi360 thank you so much .. I will have a look at the powershell script .. thanks
@@armanhatefi360 Thanks for answering this
I followed your instructions to the letter, but there is no "generate step definitions" option in the contex menu when i right click anywhere in the feature file, any tips?
Hi Anno, Let us get back to you
I just manually typed out what I could see on the screen. I'm using Visual Studio 2022, that might be why
You probably don’t have the specflow extension installed properly
Me too I have same issue
Hi, really great video. I have a doubt for the below one: in a web based application having 100 respondents each respondent have different ids. i have to run my test cases for all respondents using id which are listed in test data file. file consists of 100 respondent ids, using this file i have to select an id in backend and run the application. here i have to choose the id before the application launched. so, in this case can we use Before feature hook to access that file to select option in backend. is it possible for specflow hooks to access the data from file. Please provide answer for this🙏🙏🙏
Hi Tanneru, Let us get back to you on this
@@LambdaTest waiting for your reply on this 🙏
I am using a Mac and using visual studio 2022. I can't generate step definition because when i right click the editor, there is no option "Generate step definition".
Anyone can help guys?
Hey there,
Can you try using the shortcut CTRL+SHIFT+Q
Copy and pasting example code is not as informative as going through code and replacing things, and explaining what you are replacing and why. Anyone can go to a sample site and copy/paste code, but the value added here should be in explanation and showing why things are to be modified. I think this misses the mark in helping people understand why things are done, due to this.
Hey Sean 👋🏻
Thank you for taking the time to provide feedback on the video.
We understand the importance of providing a detailed explanation of the code and the concepts involved.
We will take your feedback into consideration and try to improve our future videos by providing more detailed explanations of the code including the changes and concepts involved.
Great! :)
14:13
lambdatest.github.io/sample-todo-app/
Hey have you tried in selenium 14.12?