Skip to content

Instantly share code, notes, and snippets.

@bharathmuddada
bharathmuddada / SeleniumWebTableDataExtraction.cs
Created August 15, 2022 01:54
C# Selenium program to extract data from web table
public class SeleniumWebTableDataExtraction {
public static void Main(string[] args)
{
//var gridurl = new Uri("http://localhost:4444");
new DriverManager().SetUpDriver(new EdgeConfig());
var driver = new EdgeDriver();
@bharathmuddada
bharathmuddada / DragandDropSample.cs
Created September 5, 2022 01:03
C# Selenium program to perform Drag and Drop
public class DragandDrop {
public static void Main(string[] args)
{
new DriverManager().SetUpDriver(new ChromeConfig());
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("http://demo.guru99.com/test/drag_drop.html");
driver.Manage().Window.Maximize();
@bharathmuddada
bharathmuddada / CookiesWithWebdriver.cs
Created September 5, 2022 01:21
c# Selenium program to get cookie with webdriver
public class SeleniumSample {
public static void Main(string[] args)
{
new DriverManager().SetUpDriver(new ChromeConfig());
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("https://www.ixigo.com/");
driver.Manage().Window.Maximize();
@bharathmuddada
bharathmuddada / SeleniumRelativeLocators.cs
Created September 5, 2022 01:52
c# Selenium program to identify elements using relative locators
public class SeleniumRelativeLocators {
public static void Main(string[] args)
{
new DriverManager().SetUpDriver(new ChromeConfig());
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("https://www.saucedemo.com/");
driver.Manage().Window.Maximize();
@bharathmuddada
bharathmuddada / gist:cff5167ffbedcdbac5b78ce4885582e6
Last active January 29, 2025 17:38
Git Commands Quick Reference
Command to list the content of git config
git config -l --global
command to merge main branch to a feature branch
git merge main