Skip to content

Instantly share code, notes, and snippets.

@andy12530
andy12530 / gist:4064621
Created November 13, 2012 08:15
为不支持的浏览器添加getElementsByClassName与querySelectorAll方法
/*
document.getElementById();
document.getElementsByTagName();
document.getElementsByName();
以上三种方法在主流浏览器中得到原生支持,但是通过class取得元素以及通过css选择器的方式取得元素,即
getElementsByClassName与querySelectorAll未在IE6、7、8中得到完全支持
*/
@roydekleijn
roydekleijn / SessionStorage.java
Created October 29, 2012 21:15
Selenium WebDriver Javascript execution for sessionStorage
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class SessionStorage {
private JavascriptExecutor js;
public SessionStorage(WebDriver driver) {
this.js = (JavascriptExecutor) driver;
}
@mrsombre
mrsombre / centos
Last active March 16, 2020 00:19
CentOS VirtualBox install
=== Symlink Support in Windows
The first step is installing Polsedit - User Policies Editor. When you open it, look for Create symbolic links.
http://www.southsoftware.com/polsedit.zip
Double click the row, click Add User or Group... and look for your username in the list.
Closing the app will automatically save your choices, and you'll need to reboot your machine.
=== Updating fresh system
;; Edit /etc/yum.conf and set installonly_limit: 2
yum upgrade
reboot