Skip to content

Commit 87c410b

Browse files
committed
Fix race condition
1 parent b8dd963 commit 87c410b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/page_object_prefs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import logging
12
import re
23
from time import sleep
34
from typing import List
45

6+
from selenium.common.exceptions import TimeoutException
57
from selenium.webdriver import Firefox
68
from selenium.webdriver.common.by import By
79
from selenium.webdriver.common.keys import Keys
@@ -598,6 +600,7 @@ def choose_sidebar_option(self, option: str):
598600
"""
599601
Clicks the corresponding sidebar option from the about:addons page.
600602
"""
603+
sleep(1)
601604
self.get_element("sidebar-options", labels=[option]).click()
602605

603606
def activate_theme(

0 commit comments

Comments
 (0)