Skip to content

Instantly share code, notes, and snippets.

function firePointerEvent(el, eventName, x,y){
const ev = new MouseEvent(eventName, {
clientX: x, clientY: y, bubbles: true, cancelable: true
});
el.dispatchEvent(ev);
}
var relativePosition = APP.getNodePositionAsOffset("cards.ticket1.emptyTicket.buttonAdd")
var canvas = document.getElementsByTagName("canvas")[0];
@Gazzell
Gazzell / update_chrome_driver.sh
Created June 10, 2020 09:03
updates chromedriver to latest version
LATEST_VERSION=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$LATEST_VERSION/chromedriver_linux64.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/;