Advertisement
mikele027

Test sample

May 1st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // 1. Go to https://www.google.com/
  2. window.location.href="https://www.google.com/";
  3.  
  4.  
  5. // 2. Open login modal (from the left side menu)
  6. document.getElementById('m1jtnw-reveal').click();
  7.  
  8. // 3. N/A
  9.  
  10. // 4. Click Log in button
  11. $("#loginform .expanded").click();
  12.  
  13. // 5. N/A
  14.  
  15. // 6. Fill in both fields with fake data
  16. function fill(a){
  17. for(var k in a){
  18. $('[name="'+k+'"]').val(a[k]);
  19. }
  20. }
  21. array_example = {"login":"gfdgdf","password":"Spirgdfgdfgit"};
  22. fill(array_example);
  23.  
  24. // 7. Click Log in button
  25. $("#loginform .expanded").click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement