Closing Browser properly in Selenium
Here is the code that would enable you to properly kill the browser in Selenium and also it’s driver I use this code because it closes the Browser and kills it properly when compared...
All about Selenium Automation Testing
Here is the code that would enable you to properly kill the browser in Selenium and also it’s driver I use this code because it closes the Browser and kills it properly when compared...
As we all may be well aware each server with large traffic may different nodes and it’s highly rare to a single server node for big web application.So when we do Automation Smoke or...
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...
The below code can be used to share the geolocation details in Selenium It does these Opens the content popup in Chrome Clicks on the radio button – share the location details Then Click...
Tags concept allows us to run and group the testcases in Specflow when executing from Jenkins. Let us see about using Tags at Feature level For E.g Having a tag like “@SmokeTest” at the...
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...
Selenium has inbuilt code to get the source of the WebPage in Python.All we have to do is use that code and get the source and store it for further manipulation. a=driver.page_source Here is...
To install Selenium binding in Python all you have to use is a simple command shown below pip install Selenium To upgrade Selenium use the below commands(The command is same as install command but...