Minor test futzing

This commit is contained in:
2020-05-26 13:35:50 +01:00
parent 08f40bce9e
commit 7356d020b2
4 changed files with 13 additions and 24 deletions

View File

@@ -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'))
}