3d6cb82646
I have implemented some new form regions and used them in currently existing pageobjects. I also created method for switching on/off web driver implicit wait. * Form has automatic field discovery and form's field properties are initialized on the form object initialization. One must submit tuple of field names that must be submited in the same order as in the page html code. * All newly created field regions are added automaticaly to FieldFactory field list. * Forms can be initialized without specifying the source element, as a result it will be assumed that source element shoud be found according to default locator (as it is quite common that forms are located under this locator) Partially implements blueprint: selenium-integration-testing Change-Id: Ic954ea1829135efdc5dd6a34840de5045b4a7a56
23 lines
825 B
Python
23 lines
825 B
Python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
class BaseRegionException(Exception):
|
|
"""Base exception class for region module."""
|
|
pass
|
|
|
|
|
|
class UnknownFormFieldTypeException(BaseRegionException):
|
|
|
|
def __str__(self):
|
|
return "No FormField class matched the scope of web content."
|