Skip to content

Instantly share code, notes, and snippets.

@anhphong1110
anhphong1110 / Check CSS from Element.robot
Created May 26, 2021 03:47 — forked from leeuwe/Check CSS from Element.robot
This git lets you grab the Computed style
*** Settings ***
Library SeleniumLibrary
*** Keywords ***
Check CSS from element
[Documentation] This keyword only works with xpath and is based on [https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle|getComputedStyle]
... You can use this keyword as follows
... | Check CSS from Element | //path/to/element | style | Expected Value |
... | Check CSS from Element | //h2/div | font-size | 24px |
[Arguments] ${xpath} ${CheckStyle} ${ExpectedComputedStyle}
@anhphong1110
anhphong1110 / chromedriver.sh
Created May 5, 2021 07:52 — forked from mikesmullin/chromedriver.sh
easily install chromedriver on linux/osx
sudo apt-get install unzip;
wget -O /tmp/chromedriver.zip http://chromedriver.googlecode.com/files/chromedriver_linux64_19.0.1068.0.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/;
@anhphong1110
anhphong1110 / curl.md
Created November 22, 2019 04:57 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.