Alert Exception in Selenium & C#
Alert exception occurs whenever a alert occurs for which we have not coded in selenium to accept the alert (or) Sometimes alerts also occurs due to invalid input The Alert Exception in C# can...
All about Selenium Automation Testing
Alert exception occurs whenever a alert occurs for which we have not coded in selenium to accept the alert (or) Sometimes alerts also occurs due to invalid input The Alert Exception in C# can...
Element not Visible exception occurs in these cases Page has not loaded fully so the element is not visible Script is too fast without any waits XPath or ID is wrong SubMenu within the...
To switch to a parent Frame in a Webpage all you have to use is the below code // Switching to an iFrame or frame inside a Webpage using Selenium and C# //Code...
We can easily switch to an iFrame or evena normal frame inside any Webpage using the inbuilt commands we have with Selenium and C# /*The below code should be executed only when you...
Let us say you are testing Facebook and you are clicking on the photo icon and you want to close the Window dialogbox that happens For the issue like that use the below code...
Alerts can be handled by a function called IAlert in C# which helps to accept and dismiss the alerts ( OK and Close/Cancel functions) You can write a common code as shown below //Accepting...
The below can be used to retrieve specific key value pairs from the Workbook which has been already read by C# code Please see the previous post about how to read a Workbook in...
The below code can be used to read excel data in C# Takes the Workbook variable and opens the workbook Loads the Workbook and reads the every sheet Reads data in every sheet and...
Dictionary compare can be used to compare two set of data in C# and it’s often used by Automation testers public static Boolean CompareDictionary(Dictionary<string, Dictionary<string, object>> D1, Dictionary<string, Dictionary<string, object>> D2) { var dic1a=new...
The below simple code will allow you to close the WebDriver once the Execution is done. It’s always a good practice to run the TestCase in a new instance of WebDriver rather than in...