Element not Visible exception in Selenium using C#
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...
All about Selenium Automation Testing
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 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...
The below code can be used to record the video of the actions done by Selenium till the point of failure or you can record the entire testcase that is being executed by Selenium...
We can log the error messages and Verbose to ChromeDriver.log via Selenium by using the below code System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; // startInfo.FileName =...