Skip to content

Instantly share code, notes, and snippets.

View veeresh-bikkaneti's full-sized avatar
😀
I may be slow to respond.

veeresh bikkaneti veeresh-bikkaneti

😀
I may be slow to respond.
View GitHub Profile
/// <summary>
/// Extension method for IWebDriver that performs a drag-and-drop operation using JavaScript.
/// This method highlights the source and destination elements for visual feedback during the operation.
/// </summary>
/// <param name="_driver">The IWebDriver instance controlling the browser.</param>
/// <param name="source">The IWebElement representing the element to be dragged.</param>
/// <param name="destination">The IWebElement representing the target element where the source will be dropped.</param>
public static void DragAndDropUsingJS(this IWebDriver _driver, IWebElement source, IWebElement destination)
{
// Highlight the source and destination elements for visual feedback during the drag-and-drop operation.
@veeresh-bikkaneti
veeresh-bikkaneti / HandlingTables.java
Created May 31, 2020 15:26
Demonstrating Complex css Selectors and Complex Xpaths along with various other locator strategies
package com.guide.beginners.testng.theinternet.individualtestclass;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.*;
import java.util.stream.Collectors;