1.打开F12,切换到console
2.xpath定位,输入:$x("your_xpath_str")
3.css定位,输入:$$("your_css_str")
4.id,document.getElementById("xx")
5.class,document.getElementByClassName("xx")
6.name,document.getElementByName("xx")