Exemplo n.º 1
0
class RegistrationBaseTestCase(TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.driver.maximize_window()
        self.login_page = LoginPage(self.driver)
        self.login_page.load()

    def tearDown(self):
        self.driver.close()
Exemplo n.º 2
0
def login():
    # Web scrapper for infinite scrolling page
    driver = webdriver.Chrome(
        executable_path=r"C:/Users/jakob/chromedriver.exe")
    #driver.get("https://web.whatsapp.com/")
    time.sleep(2)  # Allow 2 seconds for the web page to open

    login_page = LoginPage(driver)
    login_page.load()
    input("Please use the QR-Code")
    return driver
Exemplo n.º 3
0
from simon.accounts.pages import LoginPage
from simon.chat.pages import ChatPage
from simon.chats.pages import PanePage
from simon.header.pages import HeaderPage

# Creating the driver (browser)
driver = webdriver.Chrome(
    executable_path=
    "C:\\Program Files\\Google\\Chrome\\Application\\chromedriver.exe")

# Login
#	   and uncheck the remember check box
#	   (Get your phone ready to read the QR code)
login_page = LoginPage(driver)
login_page.load()
time.sleep(7)

# 1. Get all opened chats
#	   opened chats are the one chats or conversations
#	   you already have in your whatsapp.
#	   IT WONT work if you are looking for a contact
#	   you have never started a conversation.
pane_page = PanePage(driver)

# get all chats
# opened_chats = pane_page.opened_chats

# iterating over them
#print("chat:")
#for oc in opened_chats: