mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 01:12:16 +00:00
Minor test futzing
This commit is contained in:
@@ -5,6 +5,7 @@ from selenium.webdriver.remote.webelement import WebElement
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
from selenium.webdriver.support.select import Select
|
||||
import datetime
|
||||
from PyRIGS.regions import Modal
|
||||
|
||||
|
||||
class Header(Region):
|
||||
@@ -38,3 +39,13 @@ class ItemRow(Region):
|
||||
@property
|
||||
def subtotal(self):
|
||||
return self.find_element(*self._subtotal_locator).text
|
||||
|
||||
class ItemModal(Modal):
|
||||
_header_selector = (By.TAG_NAME, 'h4')
|
||||
|
||||
form_items = {
|
||||
'name': (TextBox, (By.ID, 'item_name')),
|
||||
'description': (TextBox, (By.ID, 'item_description')),
|
||||
'quantity': (TextBox, (By.ID, 'item_quantity')),
|
||||
'price': (TextBox, (By.ID, 'item_cost'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user