

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

url = "http://test.crm.galaxy-immi.com/Login"
driver = webdriver.Chrome()
driver.get(url)
driver.maximize_window()
print(driver.title)


WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.XPATH, '//input[@class="login-username"]')))
driver.find_element(By.XPATH, '//input[@class="login-username"]').send_keys('admin0001')
te = driver.find_element(By.XPATH, '//div[@class="center-logininfo-title"]/p').text
at = driver.find_element(By.XPATH, '//input[@class="login-username"]').get_attribute("placeholder")
print(te)
print(at)
time.sleep(10)
driver.quit()

