This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
document.getElementById(); | |
document.getElementsByTagName(); | |
document.getElementsByName(); | |
以上三种方法在主流浏览器中得到原生支持,但是通过class取得元素以及通过css选择器的方式取得元素,即 | |
getElementsByClassName与querySelectorAll未在IE6、7、8中得到完全支持 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
public class SessionStorage { | |
private JavascriptExecutor js; | |
public SessionStorage(WebDriver driver) { | |
this.js = (JavascriptExecutor) driver; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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 |