1 from Selenium2Library import Selenium2Library
2 from selenium.webdriver.common.keys import Keys
5 class CustomSeleniumLibrary(Selenium2Library):
6 def insert_into_prompt(self, text):
10 listOfFields = text.split(" ")
12 for temp in listOfFields:
13 allInOneString=allInOneString+temp+Keys.TAB
15 alert= self._current_browser().switch_to_alert()
16 alert.send_keys(allInOneString)
17 except WebDriverException:
18 raise RuntimeError('There were no alert')