web自动化测试系列-selenium css_selector定位方法详解(七)
2024-10-27定位方式css格式示例说明id属性定位#id属性值#username#代表id属性,username代表id对应的值。class属性定位.class属性值.username.代表class属性,username代表class对应的值标签定位标签input使用input标签定位,不过一般单独使用定位到元素,故不会单独使用。它只能和其它方式结合使用属性定位[属性名=值][]是固定格式,代表要使用属性定位,type是属性名,password是属性值标签 id定位。_Selenium selector