Advertisement
Gamebuster

loctest2.sk

Apr 7th, 2016
3,132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nagios 1.49 KB | None | 0 0
  1. command /newtab:
  2.     trigger:
  3.         open chrome browser named "Test1"
  4.         set {browser} to browser named "Test1"
  5.         go to url "https://discordapp.com/invite/0lx4QhQvwelCZbEX" in {browser}
  6.         wait 5 seconds
  7.         set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[2]/div[5]/div/form/footer/a" in {browser}
  8.         wait 1 second
  9.         click {_LoginButton}
  10.         if {_LoginButton} exists:
  11.             click {_LoginButton}
  12.         set {_EmailBar} to element found by xpath "//*[@id=""register-email""]" in {browser}
  13.         set {_PasswordBar} to element found by xpath "//*[@id=""register-password""]" in {browser}
  14.         set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[5]/div/form/button" in {browser}
  15.         click {_EmailBar}
  16.         send keys "MY EMAIL" to {_EmailBar}
  17.         click {_PasswordBar}
  18.         send keys "MY PASSWORD" to {_PasswordBar}
  19.         click {_LoginButton}
  20.         wait 5 seconds
  21.         set {_s} to element found by xpath "//*[@id=""app-mount""]/div/span[2]/div[2]/div/div/div[1]/button" in {browser}
  22.         #if {_someStupidPopup} exists:
  23.         click {_s}
  24.         #wait 1 second
  25.         set {_OffTopic} to element found by class name "channel-name" in {_browsr}
  26.         #click {_OffTopic}
  27.         #wait 0.1 second
  28.         #set {_chatBar} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[2]/section/div[3]/div[2]/div[1]/form/div/div/textarea" in {browser}
  29.         #send keys "Test %nl%" to {_chatbar}
  30.         #message "Sent message" to console
  31.         #wait 0.1 second
  32.         #close browser {browser}
  33.        
  34. every tick:
  35.     message "%{browser}%" to console
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement