Skip to content

Commit 2644d14

Browse files
committed
Fix for alerts in Chrome Browsers
This commit moves all the alert keyword in to a own _AlertKeywords class. This did make it easier to fix the bug with WebDriverWait class.
1 parent 2657ef6 commit 2644d14

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/Selenium2Library/keywords/_formelement.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,6 @@ def input_text(self, locator, text):
198198
self._info("Typing text '%s' into text field '%s'" % (text, locator))
199199
self._input_text_into_text_field(locator, text)
200200

201-
def input_text_into_prompt(self, text):
202-
"""Types the given `text` into alert box. """
203-
alert = None
204-
try:
205-
alert = self._current_browser().switch_to_alert()
206-
alert.send_keys(text)
207-
except WebDriverException:
208-
raise RuntimeError('There were no alerts')
209-
210201
def page_should_contain_textfield(self, locator, message='', loglevel='INFO'):
211202
"""Verifies text field identified by `locator` is found from current page.
212203

0 commit comments

Comments
 (0)