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 2222 "selectorData" : " wrapper-search-container" ,
2323 "strategy" : " id" ,
2424 "groups" : []
25+ },
26+
27+ "customize-page" : {
28+ "selectorData" : " customization-container" ,
29+ "strategy" : " id" ,
30+ "groups" : []
2531 }
2632}
Original file line number Diff line number Diff line change 11import pytest
22from selenium .webdriver import Firefox
3- from selenium .webdriver .common .by import By
43
54from modules .browser_object_panel_ui import PanelUi
65from modules .browser_object_tabbar import TabBar
76from modules .page_object import ExamplePage
7+ from modules .page_object_customize_firefox import CustomizeFirefox
88
99
1010@pytest .fixture ()
@@ -20,6 +20,7 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
2020
2121 panel_ui = PanelUi (driver )
2222 tabs = TabBar (driver )
23+ custom_page = CustomizeFirefox (driver )
2324
2425 # Open an initial example page
2526 example = ExamplePage (driver )
@@ -43,5 +44,5 @@ def test_customize_button_displayed_in_tab_bar(driver: Firefox):
4344 # Verify that the customize firefox tab is opened and correct
4445 example .switch_to_new_tab ()
4546 with driver .context (driver .CONTEXT_CHROME ):
46- element = driver . find_element ( By . ID , "customization-container " )
47+ element = custom_page . get_element ( "customize-page " )
4748 assert element , "element not found"
You can’t perform that action at this time.
0 commit comments