Skip to content

Commit 0a075a6

Browse files
author
Vasil Hristov
authored
Try to fix debug tests by detected element again. (#258)
Try to fix debug tests by detected element again.
1 parent 6ce4da5 commit 0a075a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: core/utils/chrome/chrome_dev_tools.py

+5
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ def add_watch_expression(self, expression, expected_result=None):
280280
Log.info('Expand watch expression bar.')
281281
expander.click()
282282
sleep(1)
283+
# if expand detect watch bar holder again
284+
watch_bar_holder = self.chrome.driver \
285+
.find_element(By.CSS_SELECTOR, "div[aria-label='sources']") \
286+
.find_element(By.CSS_SELECTOR, "div[class='widget vbox'][slot='insertion-point-sidebar']") \
287+
.find_elements(By.CSS_SELECTOR, "div[class='vbox flex-auto flex-none']")[0]
283288

284289
# Add expression
285290
tool_bar_holder = self.__expand_shadow_element(watch_bar_holder) \

0 commit comments

Comments
 (0)