Guest User

Untitled

a guest
Nov 19th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <select data-val="true" data-val-number="Int32。" data-val-required="Int32" id="CategoryData" name="ParentId" onchange="sel3(this);">
  2. <option value="0">-- category --</option>
  3. <option selected="selected" value="845">a</option>
  4. <option value="846">b</option>
  5. <option value="847">c</option>
  6. </select>
  7.  
  8. select = driver.find_element_by_id("CategoryData")
  9. a= select.find_element_by_tag_name('option')
  10. print(a.text)
  11.  
  12. select = driver.find_element_by_id("CategoryData")
  13. a= select.find_element_by_tag_name('option')
  14. for text in a:
  15. print(text.text)
Add Comment
Please, Sign In to add comment