Skip to content

Instantly share code, notes, and snippets.

Avatar

Dao Minh Dam daominhdam

View GitHub Profile
@daominhdam
daominhdam / linkchecker.js
Created August 17, 2019 03:36 — forked from eviltester/linkchecker.js
link checking from snippets
View linkchecker.js
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);
View Topic_14_VerifyHTML5Message.java
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
daominhdam / Test example
Last active September 3, 2022 09:07 — forked from rcorreia/drag_and_drop_helper.js
drag_and_drop_helper.js
View Test example
@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
View protractorAPICheatsheet.md