Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding separate ROOT to resolve #125 issue #127

Merged
merged 1 commit into from
Feb 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/widgetastic_patternfly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,8 @@ def active(self):

@View.nested
class date_pick(HeaderView): # noqa
DATES = ".//*[contains(@class, 'datepicker-days')]/table/tbody/tr/td"
ROOT = ".//*[contains(@class, 'datepicker-days')]"
DATES = ".//table/tbody/tr/td"

@property
def _elements(self):
Expand All @@ -1986,7 +1987,8 @@ def _elements(self):

@View.nested
class month_pick(HeaderView): # noqa
MONTHS = ".//*[contains(@class, 'datepicker-months')]/table/tbody/tr/td/*"
ROOT = ".//*[contains(@class, 'datepicker-months')]"
MONTHS = ".//table/tbody/tr/td/*"

@property
def _elements(self):
Expand All @@ -1998,7 +2000,8 @@ def _elements(self):

@View.nested
class year_pick(HeaderView): # noqa
YEARS = ".//*[contains(@class, 'datepicker-years')]/table/tbody/tr/td/*"
ROOT = ".//*[contains(@class, 'datepicker-years')]"
YEARS = ".//table/tbody/tr/td/*"

@property
def _elements(self):
Expand Down