You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Wiki/05.1.-Theory-&-practice.-We...

829 B

Content

  • About
  • How to use

About

The OpenRPA support web app manipulation (by the Selenium lib). More docs about selenium you can find here

How to use

To start use selenium just import selenium modules in the robot tool. Here is the example of the usage.

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.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()