command /newtab:
trigger:
open chrome browser named "Test1"
set {browser} to browser named "Test1"
go to url "https://discordapp.com/invite/0lx4QhQvwelCZbEX" in {browser}
wait 5 seconds
set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[2]/div[5]/div/form/footer/a" in {browser}
wait 1 second
click {_LoginButton}
if {_LoginButton} exists:
click {_LoginButton}
set {_EmailBar} to element found by xpath "//*[@id=""register-email""]" in {browser}
set {_PasswordBar} to element found by xpath "//*[@id=""register-password""]" in {browser}
set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[5]/div/form/button" in {browser}
click {_EmailBar}
send keys "MY EMAIL" to {_EmailBar}
click {_PasswordBar}
send keys "MY PASSWORD" to {_PasswordBar}
click {_LoginButton}
wait 5 seconds
set {_s} to element found by xpath "//*[@id=""app-mount""]/div/span[2]/div[2]/div/div/div[1]/button" in {browser}
#if {_someStupidPopup} exists:
click {_s}
#wait 1 second
set {_OffTopic} to element found by class name "channel-name" in {_browsr}
#click {_OffTopic}
#wait 0.1 second
#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}
#send keys "Test %nl%" to {_chatbar}
#message "Sent message" to console
#wait 0.1 second
#close browser {browser}
every tick:
message "%{browser}%" to console
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎