Professional Documents
Culture Documents
AMBIENTE B - ABERTURA - Jupyter Notebook
AMBIENTE B - ABERTURA - Jupyter Notebook
File Edit View Insert Cell Kernel Widgets Help Not Trusted Python 3 (ipykernel)
Run Code
import pyautogui
#AMBIENTE T8-B
#BINA03
#L1
navegador = webdriver.Chrome()
navegador.get('http://asp-t8-alm-02.gruponp.local/lmsrv/controller.php?cid=logon&do=input')
navegador.find_element('xpath', '//*[@id="brandingContainer"]/div/div[2]/div[2]/input'). send_keys("jlnita")
navegador.find_element('xpath', '//*[@id="brandingContainer"]/div/div[4]/div[2]/input'). send_keys("control")
navegador.find_element('xpath', '//*[@id="div_buttonbar"]/input[1]'). send_keys(Keys.ENTER)
navegador.find_element('xpath', '//*[@id="strategy"]'). send_keys(Keys.ENTER)
navegador.find_element('xpath', '//*[@id="strategy_fl"]'). send_keys(Keys.ENTER)
navegador.find_element('xpath', '//*[@id="basicSearch"]/input'). click()
pyautogui.write("BINA03")
pyautogui.hotkey("enter")
navegador.find_element('xpath', '//*[@id="divTableCont1"]/table/thead/tr/th[4]/a[1]'). click()
navegador.find_element('xpath', LISTA1). send_keys(Keys.ENTER)
navegador.find_element('xpath', '//*[@id="divAdvanced"]/textarea'). send_keys(Keys.ENTER)
pyautogui.hotkey("ctrl","a")
pyautogui.press("del")
pyautogui.write(FILTRO)
pyautogui.hotkey("enter")
pyautogui.hotkey("enter")
pyautogui.write(f"AND CODPROCESSAMENTO = '{COD}'")
pyautogui.hotkey("enter")
pyautogui.write("AND SEGMENTO IN ('C16','C17','K60','K17','K16')")