Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. document.getElementById('qlist-wrapper').getElementsByClassName('question-summary narrow').toString();
  2.  
  3. "[object HTMLCollection]"
  4.  
  5. webView.evaluateJavaScript("document.getElementById('qlist-
  6.  
  7. wrapper').getElementsByClassName('question-summary narrow').toString();", completionHandler: { (html: Any, error: Error?) in
  8. print("(html)")
  9. if let error = error {
  10. print("(error.localizedDescription)")
  11. }
  12. })
  13. }
  14.  
  15. po html
  16. error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff8).
  17. The process has been returned to the state before expression evaluation.
  18.  
  19. Array.prototype.slice.call(document.getElementById('qlist-wrapper').getElementsByClassName('question-summary narrow'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement