Skip to content

Commit

Permalink
Merge pull request #1620 from HelenaAdrignoli/hotfix/shadowelement
Browse files Browse the repository at this point in the history
hotfix in find_shadow_element
  • Loading branch information
98llm authored Dec 26, 2024
2 parents 573288f + 19d0873 commit 9ade15c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.20.29rc1.tar.gz
pip install -U dist/tir_framework-1.20.29rc2.tar.gz
pause >nul | set/p = Press any key to exit ...
5 changes: 5 additions & 0 deletions tir/technologies/webapp_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10738,6 +10738,11 @@ def find_shadow_element(self, term, objects, get_all=True):
elements = self.driver.execute_script(script, objects)
except:
pass

if not elements:
script = f"return arguments[0].querySelectorAll('{term}')"
elements = self.driver.execute_script(script, objects)

return elements if elements else None

def return_soup_by_selenium(self, elements, term, selectors):
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.20.29rc1'
__version__ = '1.20.29rc2'

0 comments on commit 9ade15c

Please sign in to comment.