Skip to content

Try to fix debug tests by detected element again. #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 4, 2019
5 changes: 5 additions & 0 deletions core/utils/chrome/chrome_dev_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ def add_watch_expression(self, expression, expected_result=None):
Log.info('Expand watch expression bar.')
expander.click()
sleep(1)
# if expand detect watch bar holder again
watch_bar_holder = self.chrome.driver \
.find_element(By.CSS_SELECTOR, "div[aria-label='sources']") \
.find_element(By.CSS_SELECTOR, "div[class='widget vbox'][slot='insertion-point-sidebar']") \
.find_elements(By.CSS_SELECTOR, "div[class='vbox flex-auto flex-none']")[0]

# Add expression
tool_bar_holder = self.__expand_shadow_element(watch_bar_holder) \
Expand Down