Skip to content

Commit 3cc7cb7

Browse files
committed
Fix some assertion markers
1 parent 2ddf291 commit 3cc7cb7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Browser/keywords/getters.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def get_page_state(
6767
value, assertion_operator, assertion_expected, "State "
6868
)
6969

70-
@keyword(tags=["Getter", "BrowserControl"])
70+
@keyword(tags=["Getter", "Assertion", "BrowserControl"])
71+
@with_assertions
7172
def get_page_source(
7273
self,
7374
assertion_operator: Optional[AssertionOperator] = None,
@@ -163,7 +164,6 @@ def get_attribute(
163164
)
164165

165166
@keyword(tags=["Getter", "Assertion", "PageContent"])
166-
@with_assertions
167167
def get_textfield_value(
168168
self,
169169
selector: str,
@@ -311,8 +311,7 @@ def get_element_count(
311311
f"Element count for selector `{selector}` is",
312312
)
313313

314-
@keyword(tags=["Getter", "Assertion", "BrowserControl"])
315-
@with_assertions
314+
@keyword(tags=["Getter", "BrowserControl"])
316315
def get_browser_catalog(self):
317316
""" Returns all browsers, open contexts in them and open pages in these contexts.
318317
@@ -442,8 +441,7 @@ def get_style(
442441
f"Style value for {key} is ",
443442
)
444443

445-
@keyword(tags=["Getter", "Assertion"])
446-
@with_assertions
444+
@keyword(tags=["Getter"])
447445
def get_boundingbox(self, selector: str, *keys: BoundingBoxFields):
448446
""" Gets elements size and location as an object {x: int, y: int, width: int, height: int}.
449447

0 commit comments

Comments
 (0)