File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
22
"selectorData" : " wrapper-search-container" ,
23
23
"strategy" : " id" ,
24
24
"groups" : []
25
+ },
26
+
27
+ "customize-page" : {
28
+ "selectorData" : " customization-container" ,
29
+ "strategy" : " id" ,
30
+ "groups" : []
25
31
}
26
32
}
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
from selenium .webdriver import Firefox
3
- from selenium .webdriver .common .by import By
4
3
5
4
from modules .browser_object_panel_ui import PanelUi
6
5
from modules .browser_object_tabbar import TabBar
7
6
from modules .page_object import ExamplePage
7
+ from modules .page_object_customize_firefox import CustomizeFirefox
8
8
9
9
10
10
@pytest .fixture ()
@@ -20,6 +20,7 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
20
20
21
21
panel_ui = PanelUi (driver )
22
22
tabs = TabBar (driver )
23
+ custom_page = CustomizeFirefox (driver )
23
24
24
25
# Open an initial example page
25
26
example = ExamplePage (driver )
@@ -43,5 +44,5 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
43
44
# Verify that the customize firefox tab is opened and correct
44
45
example .switch_to_new_tab ()
45
46
with driver .context (driver .CONTEXT_CHROME ):
46
- element = driver . find_element ( By . ID , "customization-container " )
47
+ element = custom_page . get_element ( "customize-page " )
47
48
assert element , "element not found"
You can’t perform that action at this time.
0 commit comments