Skip to content

Instantly share code, notes, and snippets.

View daominhdam's full-sized avatar

Dao Minh Dam daominhdam

View GitHub Profile
@eviltester
eviltester / linkchecker.js
Last active January 15, 2024 04:48
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);
@rcorreia
rcorreia / drag_and_drop_helper.js
Last active August 11, 2023 06:41
drag_and_drop_helper.js
(function( $ ) {
$.fn.simulateDragDrop = function(options) {
return this.each(function() {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function(elem, options) {
this.options = options;
this.simulateEvent(elem, options);
};
@javierarques
javierarques / protractorAPICheatsheet.md
Last active January 31, 2023 08:51
Protractor API Cheatsheet
@bhrott
bhrott / clone_repositories.sh
Created June 24, 2016 02:28
SH: Clone Multiple Repositories Repositories
#!/bin/sh
# Clone multiple repositories.
echo "=== CLONENATOR ==="
array=( "https://github.com/angular/angular.git"
"https://github.com/nodejs/node.git" )
for element in ${array[@]}
@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