Skip to content

[FT] Allow to check if control it's defined on a Page #284

@netzulo

Description

@netzulo

Obtained behaviour

Can't allow to check if control it's defined on a Page

Expected behaviour

Allow to check if control it's defined on a Page

Notes

def _set_control(self, cfg_control):
"""Set control as property of PageBase instance
Arguments:
cfg_control {dict} -- config dictionary for manage WebElement
Raises:
PageException -- if param cfg_control is None
"""
if not cfg_control:
raise PageException(msg='cfg_control can not be None')
setattr(
self,
cfg_control.get('name'),
cfg_control.get('instance'))

Metadata

Metadata

Assignees

Labels

Awaiting-PRWork In Progress at some pull requestBest PracticeNot functionality problem, but refactor need it

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions