SeleniumHelper.py
Activation:
self.registerAction('selectCombo',selectCombo(), 2)Action class:
class selectCombo(seleniumTypeContext) :
""" Action class for 'selectCombo' action
First parameter: element selector for 'select' tag
Second parameter: Value to be selected
"""
def do(self):
locator = self.cparam[0]
label = self.cparam[1]
self.se.select(locator, 'value=' + label)
It covers GWT widget ListBox which renders as "select" HTML tag. |
Brak komentarzy:
Prześlij komentarz