Selenium C# – Interview Questions

1. What is the difference between “/” and “//” in Xpath? Single Slash “/” – Single slash is used to create Xpath with absolute path i.e. the xpath would be created to start selection from the document node/start node. Double Slash “//” – Double slash is used to create Xpath with relative path i.e. the…

Running Chrome Browser using Selenium and C#

Once Visual Studio has been installed.  Let’s Create out first Selenium Project and get our hands dirty with some coding. Step 1:  Click New Project on left sidebar of Visual Studio Step 2:  Choose from Project Templates as Visual C#  and Project Type as Console Application Step 3:  Enter Name of project and click Ok.  In below…

Continuous Integration with Jenkins

If you are reading this, We bet you would have been part of one or more group talks where someone starts conversation by saying “We should use Jenkins for Continuous Integration”.  If someone dares to ask that gentleman – “Why?”;  he is bombarded back with heavy words like Build Server, Automated Build Deployment and Commits, Build Breaks and many…

Data Driven Tests

Need for Data Driven Testing As an SDET (Software Development Engineer in Test) or Automation Test Engineer we are expected to design tests for fully featured web applications that our company is working hard to complete and launch.  Most of the fully featured Web Applications will have scenarios knit around data. For instance let’s take a…

Installing Visual Studio 2015

Visual Studio 2015 Community Edition if a free visual studio download available at following download link. https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx So, Just download it by clicking “Download Community 2015” Step by Step Installation Instructions Step 1: Launch the installer Step 2: Proceed with Default Option and click Install Step 3:  Just wait, Typically Visual Studio Install may take from 10 to…

Visual Studio 2015 – Installation (KB 2919355) – Troubleshooting

Visual Studio 2015 Community Edition gives following error when installed on Windows 8.1 (x64) Error message This version of Visual Studio requires the April 2014 update to Windows 8.1 and Windows Server 2012 R2 known as KB 2919355 (http://go.microsoft.com/fwlink/?LinkId=403643&clcid=0x409). Please install KB 2919355 (http://go.microsoft.com/fwlink/?LinkId=403643&clcid=0x409) before you install Visual Studio on these operating systems. This is…

Selenium C# – Drag and Drop

What Are Alerts? Click buttons below to experience yourself. %CODE1% Drag me to my target Drop here Now, Imagine we are testing a website that shows you alerts on taking some action.  We need a way to programmatically take some action on Alert.  Now what are possible actions we may want to perform on an alert? Click…

XPath and CSS Selectors

Why Should We Learn XPath and CSS Selectors? To automate our test cases we need to locate elements on a web page (Textbox, RadioButtons, Checkboxes, Dropdowns etc) and then perform actions based on test steps. So far we’ve learnt 6 out of 8 ways to locate Web Elements on a page By.id(“elementId”) By.name(“elementName”) By.linkText(“HyperLink Text”)…

Selenium C# – Alerts Handling

What Are Alerts? Click buttons below to experience yourself. %CODE1% Message Alert Confirm Alert Prompt Alert Now, Imagine we are testing a website that shows you alerts on taking some action.  We need a way to programmatically take some action on Alert.  Now what are possible actions we may want to perform on an alert? Click OK on…

Selenium C# – Drop Down and Multi-Select

What Are Selections? Single Selection Select CountryCanadaUSAUKSwedenIndiaOtherMulti-Selection EnglishHindiFrenchPunjabiJapaneseSpanish %CODE1% Getting Ready to handle Select (DropDown and Multi-Select) We can’t deal with select using WebElement commands because Select support many options to interact than provided by WebElement.  To handle selections, selenium has defined a separate class named Select. Whenever in our web application, an select element is encountered we request WebDriver to find…