Skip to content

Commit

Permalink
Merge pull request totvs#533 from 98llm/update/SetButton_strip
Browse files Browse the repository at this point in the history
Hotfix/set button strip
  • Loading branch information
renanllisboa authored Aug 13, 2021
2 parents b107f9c + 52ae9e8 commit 566931e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/install_package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ taskkill /f /im chromedriver.exe
echo -------------------------
echo Installing project...
echo -------------------------
pip install -U dist/tir_framework-1.18.0rc5.tar.gz
pip install -U dist/tir_framework-1.18.0rc6.tar.gz
pause >nul | set/p = Press any key to exit ...
3 changes: 1 addition & 2 deletions 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.strip(), contents))), None)

if soup_objects_filtered:
soup_element = lambda : self.soup_to_selenium(soup_objects_filtered[0])
Expand Down Expand Up @@ -5272,7 +5272,6 @@ def get_enchoice_button_ids(self, layer):
buttons = list(filter(lambda x: x.text.strip() != "", current_layer.select(".tpanel button")))
return list(map(lambda x: x.parent.attrs["id"], buttons))
except Exception as error:
logger().exception(error)
return []

def CheckView(self, text, element_type="help"):
Expand Down
2 changes: 1 addition & 1 deletion tir/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.18.0rc5'
__version__ = '1.18.0rc6'

0 comments on commit 566931e

Please sign in to comment.