Skip to content

Instantly share code, notes, and snippets.

View daominhdam's full-sized avatar

Dao Minh Dam daominhdam

View GitHub Profile
@daominhdam
daominhdam / Test example
Last active September 3, 2022 09:07 — forked from rcorreia/drag_and_drop_helper.js
drag_and_drop_helper.js
@Test
public void TC_07_Drag_And_Drop_HTML5() throws InterruptedException, IOException {
driver.get("http://the-internet.herokuapp.com/drag_and_drop");
String sourceCss = "#column-a";
String targetCss = "#column-b";
String java_script = readFile(javascriptPath);
// Inject Jquery lib to site
@daominhdam
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;
links.forEach(function(link){
var reportLine = {url: link.getAttribute('href'), status:0, redirectedTo: "", message : "", element : link};
linkReport.push(reportLine);
console.log("HEAD " + reportLine.url);