MouseHover and Click in Selenium using C#
The below post will illustrate how to do a mousehover over the element and then click on the submenu or link that’s displayed on hover over the first element Step 1 : Do a...
All about Selenium Automation Testing
The below post will illustrate how to do a mousehover over the element and then click on the submenu or link that’s displayed on hover over the first element Step 1 : Do a...
Many a times we may just need to verify whether the sub menus are displayed when we hover over a mousemenu like shown below In the above picture we may have to verify...
Passing some parameters like Browsers and url from Jenkins Job to C# or any other code allows to do a lot of stuff and manipulation to make your Automation successful. Step 1: Click on...
Here is a code that comes in handy whenever we need take something out of source HTML The below code in Selenium will give the full source of the HTML or anyother file. (this...
Sometimes we may come across situations where we may need to generate some random string in C# for using it in Selenium. Be it Names, or City or email addresses or say Purchase Order...
Uploading a file in Selenium is easy, you need not click on the Window dialog box and browse through the folder location to select a file if the input type is “file” For e.g...
The below one is a custom wait functionality that can be used to detect element in Selenium.And it’s usage has been also declared below. All we have to do is declare this as part...
The below code helps you to take the screenshot in Selenium using Specflow. And the code is executed only After the scenario is executed, So when the step of the scenario fails, it takes...
Taking screenshot using C# with Selenium is very easy as it has a inbuilt function //Taking Screenshot in C# Screenshot ss = ((ITakesScreenshot)Browser).GetScreenshot(); string title = ScenarioContext.Current.ScenarioInfo.Title; string Runname = title + DateTime.Now.ToString(“yyyy-MM-dd-HH_mm_ss”); string...
Sometimes Cookies needs to be set in Selenium so that it automatically loads up a page with predefined values or something else.And Selenium has inbuilt functionality which allows to set Cookies in any language...