Skip to content

Instantly share code, notes, and snippets.

View daominhdam's full-sized avatar

Dao Minh Dam daominhdam

View GitHub Profile
daominhdam / linkchecker.js
Created August 17, 2019 03:36 — forked from eviltester/linkchecker.js
link checking from snippets
var links = document.querySelectorAll("a");
var linkReport = [];
var linksChecked=0;
var reportLine = {url: link.getAttribute('href'), status:0, redirectedTo: "", message : "", element : link};
console.log("HEAD " + reportLine.url);
package selenium_webdriver_api;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
daominhdam / Test example
Last active September 3, 2022 09:07 — forked from rcorreia/drag_and_drop_helper.js
public void TC_07_Drag_And_Drop_HTML5() throws InterruptedException, IOException {
String sourceCss = "#column-a";
String targetCss = "#column-b";
String java_script = readFile(javascriptPath);
// Inject Jquery lib to site