Created
May 8, 2018 15:12
-
-
Save manojnaidu619/189d6c08203a0c4c5ed946eda9790c45 to your computer and use it in GitHub Desktop.
Gmail login ruby script using WATIR webdriver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'watir' | |
browser = Watir::Browser.new(:firefox) | |
browser.goto("https://www.gmail.com") | |
sleep 2 | |
browser.text_field(class: "whsOnd zHQkBf").set "YOUR EMAIL ADDRESS HERE" | |
sleep 2 | |
browser.span(index: 4).click | |
sleep 2 | |
browser.text_field(name: "password").set "YOUR EMAIL PASSWORD HERE" | |
sleep 2 | |
browser.send_keys :enter | |
# Make sure you run latest version of firefox | |
# Make sure you have installed geckodriver (a firefox webdriver) in your ruby executable path. | |
# go to terminal and type --> ruby gmail_login.rb | |
# sit back and watch it in action!! |
Glad to hear from you!✌️
…On Wed, 7 Aug, 2019, 16:28 americanSammy, ***@***.***> wrote:
found you via youtube. Thanks for the video explanation!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/189d6c08203a0c4c5ed946eda9790c45?email_source=notifications&email_token=AFJ4ZMETHH7RLIBJB7NN5RTQDKTGDA5CNFSM4IJ7DDLKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAFWUF6#gistcomment-2992223>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJ4ZMFCNX3P5N6ZWYT7DDLQDKTGDANCNFSM4IJ7DDLA>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found you via youtube. Thanks for the video explanation!