parent
0585c486df
commit
032c40e3bf
@ -0,0 +1,3 @@
|
||||
cd %~dp0
|
||||
.\..\..\..\Resources\WPy64-3720\python-3.7.2.amd64\python.exe
|
||||
pause >nul
|
@ -0,0 +1,3 @@
|
||||
cd %~dp0
|
||||
.\..\..\..\Resources\WPy64-3720\python-3.7.2.amd64\python.exe Script.py
|
||||
pause >nul
|
@ -0,0 +1,17 @@
|
||||
import os
|
||||
|
||||
#Add chrome webdriver to PATH system enviroment (need to selenium)
|
||||
os.environ["PATH"]=os.environ["PATH"]+";C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\SeleniumWebDrivers\\Chrome\\chromedriver_win32 v76.0.3809.126\\"
|
||||
|
||||
#Import selenium
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.keys import Keys
|
||||
|
||||
driver = webdriver.Chrome()
|
||||
driver.get("http://www.python.org")
|
||||
assert "Python" in driver.title
|
||||
elem = driver.find_element_by_name("q")
|
||||
elem.send_keys("pycon")
|
||||
elem.send_keys(Keys.RETURN)
|
||||
assert "No results found." not in driver.page_source
|
||||
driver.close()
|
@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
#Add chrome webdriver to PATH system enviroment (need to selenium)
|
||||
os.environ["PATH"]=os.environ["PATH"]+";C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\SeleniumWebDrivers\\Chrome\\chromedriver_win32 v76.0.3809.126\\"
|
||||
|
||||
#Import selenium
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.keys import Keys
|
||||
|
||||
driver = webdriver.Chrome()
|
||||
driver.get("http://www.python.org")
|
Loading…
Reference in new issue