Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tool
Browse files Browse the repository at this point in the history
szymon-kellton committed Mar 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8377445 commit 89f7bc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/selenium_tests/tools/tag_name_finder.py
Original file line number Diff line number Diff line change
@@ -17,11 +17,11 @@

def printing(what: str) -> None:
for ii in ids:
data_cy_attribute = ii.get_attribute("data-cy")
var_name = [i.capitalize() for i in ii.get_attribute("data-cy").lower().replace("-", " ").split(" ")]
data_cy_attribute = ii.get_attribute("data-cy") # type: ignore
var_name = [i.capitalize() for i in data_cy_attribute.lower().replace("-", " ").split(" ")]
method_name = "get" + "".join(var_name)
var_name[0] = var_name[0].lower()
var_name = " ".join(var_name)
var_name = "".join(var_name) # type: ignore
if what == "Labels":
print(f"{var_name} = '{ii.tag_name}[data-cy=\"{data_cy_attribute}\"]'")
if what == "Methods":

0 comments on commit 89f7bc2

Please sign in to comment.