Skip to content

Commit

Permalink
strip para remoção de espaços em textos do html
Browse files Browse the repository at this point in the history
  • Loading branch information
98llm committed Aug 13, 2021
1 parent b107f9c commit 4d8a737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2892,7 +2892,7 @@ def SetButton(self, button, sub_item="", position=1, check_error=True):
soup_objects_filtered = self.filter_is_displayed(soup_objects)

contents = list(map(lambda x: x.contents, soup_objects_filtered))
soup_objects_filtered = next(iter(list(filter(lambda x: x[0].text == sub_item, contents))), None)
soup_objects_filtered = next(iter(list(filter(lambda x: x[0].text.strip() == sub_item, contents))), None)

if soup_objects_filtered:
soup_element = lambda : self.soup_to_selenium(soup_objects_filtered[0])
Expand Down

0 comments on commit 4d8a737

Please sign in to comment.