Advertisement
Gamebuster

loctest.sk

Mar 31st, 2016
3,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nagios 1.97 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.         if {_LoginButton} is not set:
  9.             message "Could not find login button"
  10.             stop
  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-ADDRESS" to {_EmailBar}
  17.         click {_PasswordBar}
  18.         send keys "MY-PASSWORD" to {_PasswordBar}
  19.         click {_LoginButton}
  20.         wait 5 seconds
  21.         message "%{_browser}%" to console
  22.         set {_someStupidPopup} to element found by xpath "//*[@id=""app-mount""]/div/span[2]/div[2]/div/div/div[1]/button" in {_browser}
  23.         if {_someStupidPopup} exists:
  24.             click {_someStupidPopup}
  25.         wait 1 second
  26.         set {_OffTopic} to element found by class name "channel-name" in {_browsr}
  27.         click {_OffTopic}
  28.         wait 0.1 second
  29.         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}
  30.         send keys "Test %nl%" to {_chatbar}
  31.         message "Sent message" to console
  32.         wait 0.1 second
  33.         close browser {_browser}
  34.        
  35. command /random [<text>] [<text>] [<text>] [<text>]:
  36.     trigger:
  37.         set {_things::1} to argument 1
  38.         set {_things::2} to argument 2
  39.         set {_things::3} to argument 3
  40.         set {_things::4} to argument 4
  41.         set {_this} to a random object out of {_things::*}
  42.         message "%{_this}%"
  43.        
  44. command /goto <text>:
  45.     trigger:
  46.         go to url "%argument 1%" in browser named "test"
  47.        
  48. command /close <text>:
  49.     trigger:
  50.         close browser browser named "%argument 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement