Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-10-04 17:45:35 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-10-04 17:45:35 (GMT)
commit0934368621e918072fbf48a6bdf7490c51a9ada7 (patch)
treebf80c4c9a343f84abf7764ffb4f16743f06221f9
parent05797214d4873b73fe1401307845b9105999834b (diff)
Remove selenium from load_file function
-rw-r--r--webapp/webapp/features/upload_poll_result.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/webapp/features/upload_poll_result.py b/webapp/webapp/features/upload_poll_result.py
index eac34ff..1ed2650 100644
--- a/webapp/webapp/features/upload_poll_result.py
+++ b/webapp/webapp/features/upload_poll_result.py
@@ -26,8 +26,8 @@ def load_file(browser, file_name, position=1):
poll_result_path = get_result_file_path_from_fixture(file_name)
b.find_by_xpath('/html/body/div/div[2]/form/fieldset/div/button').click()
input_xpath = "(//input[@name='result'])[{0}]".format(str(position))
- file_input = b.driver.find_element_by_xpath(input_xpath)
- file_input.send_keys(poll_result_path)
+ file_input = b.find_by_xpath(input_xpath).first
+ file_input.type(poll_result_path)
def click_on_by_xpath(browser, xpath):