Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SELECTOR_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ Path to .json: modules/data/exemple_page.components.json
```
Selector Name: learn-more
Selector Data: "Learn more"
Description: More information..." link
Description: "Learn more" link
Location: The hyperlink positioned in the middle of example.com page
Path to .json: modules/data/exemple_page.components.json
```
Expand Down Expand Up @@ -3238,7 +3238,7 @@ Path to .json: modules/data/panel_ui.components.json
```
```
Selector name: panel-ui-history-recently-closed-reopen-tabs
Selector Data: toolbarbutton[class='subviewbutton subviewbutton-nav'][label='Recently closed tabs']
Selector Data: toolbarbutton[class='restoreallitem subviewbutton panel-subview-footer-button']
Description: Recently closed reopen tabs
Location: On the hamburger menu > History
Path to .json: modules/data/panel_ui.components.json
Expand Down
6 changes: 3 additions & 3 deletions tests/menus/test_hyperlink_context_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ def test_open_link_in_new_window(driver: Firefox):
example = ExamplePage(driver)
example.open()

# right click the hyperlink
# Right-click the hyperlink
example.context_click("learn-more")

# click on the open in new window option
# Click on the open in new window option
hyperlink_context.click_and_hide_menu("context-menu-open-link-in-new-window")

# verify there are two instances (two windows)
# Verify there are two instances (two windows)
tabs.wait_for_num_windows(2)
driver.switch_to.window(driver.window_handles[1])

Expand Down
8 changes: 4 additions & 4 deletions tests/menus/test_tab_context_menu_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ def test_duplicate_tab(driver: Firefox):

tabs_to_open = 4

# open some tabs
# Open some tabs
for i in range(tabs_to_open):
driver.get(links[i])
tabs.new_tab_by_button()
driver.switch_to.window(driver.window_handles[i + 1])

# context click
# Context click
first_tab = tabs.get_tab(1)
tabs.context_click(first_tab)
tab_context_menu.click_and_hide_menu("context-menu-duplicate-tab")

# get the current tab and assert the url
# Get the current tab and assert the url
driver.switch_to.window(driver.window_handles[tabs_to_open + 1])
current_page = driver.current_url
assert current_page == links[0]
Expand All @@ -54,7 +54,7 @@ def test_close_multiple_tabs_to_right(driver: Firefox):

tabs_to_open = 4

# open some tabs
# Open some tabs
for i in range(tabs_to_open):
driver.get(links[i])
tabs.new_tab_by_button()
Expand Down
14 changes: 8 additions & 6 deletions tests/menus/test_tab_context_menu_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,29 @@ def test_copy_link(driver: Firefox):
nav = Navigation(driver)
hyperlink_context = ContextMenu(driver)
tabs = TabBar(driver)
example = ExamplePage(driver).open()
example = ExamplePage(driver)

# right click the hyperlink
example.open()

# Right-click the hyperlink
sleep(1)
example.context_click("learn-more")

# click on the open in new window option
# Click on the open in new window option
sleep(1)
hyperlink_context.click_and_hide_menu("context-menu-copy-link")

# open a new tab
# Open a new tab
tabs.new_tab_by_button()
tabs.wait_for_num_tabs(2)
sleep(1)
driver.switch_to.window(driver.window_handles[1])

# # context click and paste
# Context click and paste
search_bar = nav.get_awesome_bar()
nav.context_click(search_bar)

# paste and go
# Paste and go
nav.click_and_hide_menu("context-menu-paste-and-go")

example.title_contains(example.MORE_INFO_TITLE)
Expand Down
1 change: 0 additions & 1 deletion tests/tabs/test_open_new_tab_via_hyperlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from modules.browser_object import ContextMenu
from modules.page_object import ExamplePage


URL = "https://www.iana.org/help/example-domains"


Expand Down
2 changes: 1 addition & 1 deletion tests/tabs/test_pin_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from modules.browser_object import ContextMenu, TabBar


NUM_TABS = 5


@pytest.fixture()
def test_case():
return "134722"
Expand Down
2 changes: 1 addition & 1 deletion tests/tabs/test_reopen_tab_through_context_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

from modules.browser_object import ContextMenu, TabBar


TABS_TO_OPEN = 4
FIRST_URL = "about:about"
SECOND_URL = "about:robots"


@pytest.fixture()
def test_case():
return "134648"
Expand Down
Loading