Moved wait for page load to the right place.

Change-Id: I9b2b0aa5954ef634c4bf1ef74c64af4bb3332187
This commit is contained in:
TimurNurlygayanov
2013-11-11 17:46:38 +04:00
parent 2333844d2f
commit 72ad749ab7

View File

@@ -395,10 +395,10 @@ class _WebUIlib(_Utils):
*Examples:*
| Fill field | Dashboard . New Post Title field | Test blog-post |
"""
self.wait_for_page_loaded()
selector = self.wait_for_element_found(field_name, 'input/textarea',
'next')
self.wait_for_page_loaded()
if 'PASSWORD' in field_name.upper():
self.input_password(selector, text)
else: