Selam arkadaşlar. Python’ da özel bir proje yapmak istiyorum. Biriniz bana selenium ile ***** oturum açma kodunu yazabilir mi?
main.py:
from info import doctor_mail
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
class mail:
def __init__(self, *username):
self.driver=webdriver.Chrome()
self.username=username
def singIn(self):
self.driver.get("https://mail.google.com")
usernameInput = self.driver.find_element_by_xpath("//*[@id='identifierId']")
usernameInput.send_keys(self.username)
nextSubmit = self.driver.find_element_by_xpath("//*[@id='identifierNext']")
nextSubmit.click()
process = mail(doctor_mail)
process.singIn()
info.py:
doctor_mail = input("Doctor mail: ")
doctor_password=input("Doctor passwords")
patient_mail = input("Patient mail:")
treatment=input("Hatsa hangi tedaviyi gördü?")