P元素
HTML tag - <p>
可以用来定位的方法有:
Browser.paragraph(:class, “paragraph class”)
Browser.paragraph(:id, “paragraph id”)
Browser.paragraph(:index, 0)
Browser.paragraph(:name, “paragraph name”)
Browser.paragraph(:text, “paragraph text”)
Browser.paragraph(:xpath, “paragraph xpath”)
Browser.paragraph(:class=>“paragraph class name”, :index, 0) (Mulitple Attributes)
Pre元素
HTML tag - <pre>
可以用来定位的方法有:
Browser.pre(:class, “pre class”)
Browser.pre(:id, “pre id”)
Browser.pre(:index, 0)
Browser.pre(:name, “pre name”)
Browser.pre(:text, “pre text”)
Browser.pre(:xpath, “pre xpath”)
Browser.pre(:class=>“pre class name”, :index, 0) (Mulitple Attributes)
Radio元素
HTML tag - <input type=”radio”>
可以用来定位的方法有:
Browser.radio(:class, “radio class”)
Browser.radio(:id, “radio id”)
Browser.radio(:index, 0)
Browser.radio(:name, “radio name”)
Browser.radio(:text, “radio text”)
Browser.radio(:value, “radio value”)
Browser.radio(:xpath, “radio xpath”)
Browser.radio(:class=>“radio class name”, :index, 0) (Mulitple Attributes)
Tr元素
HTML tag - <tr>
可以用来定位的方法有:
Browser.tr(:class, “tr class”)
Browser.tr(:id, “tr id”)
Browser.tr(:index, 0)
Browser.tr(:name, “tr name”)
Browser.tr(:text, “tr text”)
Browser.tr(:xpath, “tr xpath”)
Browser.tr(:class=>“tr class name”, :index, 0) (Mulitple Attributes)