96 lines
3.5 KiB
Python
96 lines
3.5 KiB
Python
from selenium import webdriver
|
|
from selenium.webdriver.common.by import By
|
|
from webdriver_manager.chrome import ChromeDriverManager
|
|
from element_manager import *
|
|
from selenium.webdriver.common.keys import Keys
|
|
driver = webdriver.Chrome(ChromeDriverManager().install())
|
|
|
|
|
|
# to click on the element(로그인) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'qmHvCUkmNT8mWle')).click()
|
|
|
|
# to click on the element found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'WvGb1578ZvSWxf5')).click()
|
|
|
|
# to click on input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'3zIk6s6r8fjcKsQ')).click()
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'Pj1IEE2JLbfAdBx')).send_keys('Meta')
|
|
|
|
# to click on input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'Pl06owTF4K2qJ0M')).click()
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'fiJ8gMcakfeIXoD')).send_keys('t')
|
|
|
|
# press Backspace key
|
|
driver.switch_to.active_element.send_keys(Keys.BACK_SPACE)
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'MRpBBHVstWW4CGp')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'adw0IfyGuD8sTGi')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'JVNgNIZyTnXc1qW')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'IK6D19jz4htaIFp')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'Flft0kgJSTqrRlA')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'WuHrsOQ3yG0G6CR')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'MO_GJrIl8JdleES')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'fFPm0jRfhu4zMtg')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'LqgaR8rEAAetIki')).send_keys('Process')
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'uJIldt3OunIzcDH')).send_keys('Process')
|
|
|
|
# press Tab key
|
|
driver.switch_to.active_element.send_keys(Keys.TAB)
|
|
|
|
# to type content in input field
|
|
driver.find_element(By.XPATH,get_xpath(driver,'DVuY8WMalvL7t8C')).send_keys('asdf1234')
|
|
|
|
# to click on the element(직원 로그인 하기) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'yWReVy0DDOGqbBM')).click()
|
|
|
|
# to click on the element(신규 상품 등록) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'pixT6SFoLewNdtk')).click()
|
|
|
|
# to click on the element(판매가141,900~141,900원배...) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'DUuaybQEkYFD06p')).click()
|
|
|
|
# to click on the element(브라우저 번역하기) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'i47RYNqzZaSJcUt')).click()
|
|
|
|
# to click on the element found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'sObEp8_QS4Cb10O')).click()
|
|
|
|
# to click on the element found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'Be1LX5OzlybIBPQ')).click()
|
|
|
|
# to click on the element found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'nfgPtsLds_xhvdZ')).click()
|
|
|
|
# to click on the element(전체 적용하기) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'hijklMMifSdEe93')).click()
|
|
|
|
# to click on the element(저장하기) found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'QuARrBpzkXBcnM1')).click()
|
|
|
|
# to click on the element found
|
|
driver.find_element(By.XPATH,get_xpath(driver,'u4DCLfetYhREDph')).click()
|
|
|