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 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...
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 =...
As we test different webpages in Automation sometimes we may encounter scenario where we may need to switch over to different frames on Windows to test ,click and verify the elements on those webpages...
Here is the small method that makes use of Selenium’s inbuilt functionality to get the title of any webpage //Static class Extra public static class Extra { //New single method to get the...