Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <div class="class1" style="width: 309px;">
  2. <div class="sPb-a">
  3. <div class="class2" style="display: none;" aria-hidden="true">
  4. www.lol.com
  5. </div>
  6. <input class="class3" type="text" dir="ltr" style="width: 301px;"></input>
  7. </div>
  8. <div></div>
  9. </div>
  10.  
  11. elem = browser.find_element_by_xpath("//input[@style='width: 301px;']")
  12. elem.clear()
  13. time.sleep(1)
  14. elem.send_keys('lol')
  15. time.sleep(1)
  16.  
  17. Element is not currently visible and so may not be interacted with
  18. Stacktrace:
  19. at fxdriver.preconditions.visible (file:///tmp/tmpma637_/extensions/fxdriver@googlecode.com/components/command-processor.js:9982)
  20. at DelayedCommand.prototype.checkPreconditions_ (file:///tmp/tmpma637_/extensions/fxdriver@googlecode.com/components/command-processor.js:12626)
  21. at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpma637_/extensions/fxdriver@googlecode.com/components/command-processor.js:12643)
  22. at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpma637_/extensions/fxdriver@googlecode.com/components/command-processor.js:12648)
  23. at DelayedCommand.prototype.execute/< (file:///tmp/tmpma637_/extensions/fxdriver@googlecode.com/components/command-processor.js:12590)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement