Skip to content

Commit 8fff6dd

Browse files
committed
204-create-workshop-files: 204 make tab index optional in google chrome
1 parent 0ffe9b4 commit 8fff6dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

puma/apps/android/google_chrome/google_chrome.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, device_udid):
6262
)
6363

6464
@action(current_tab_state)
65-
def visit_url(self, url_string: str, tab_index: int):
65+
def visit_url(self, url_string: str, tab_index: int=None):
6666
"""
6767
Visits a url in an existing tab.
6868
Note that if you supply a tab index that is a new tab, the action will fail. Use go_to_new_tab instead.
@@ -94,7 +94,7 @@ def visit_url_incognito(self, url_string: str):
9494
self._enter_url(url_string, URL_BAR)
9595

9696
@action(current_tab_state)
97-
def bookmark_page(self, tab_index: int):
97+
def bookmark_page(self, tab_index: int=None):
9898
"""
9999
Bookmarks the current page.
100100
:param tab_index: Index of the tab to bookmark.
@@ -117,7 +117,7 @@ def load_first_bookmark(self, folder_name: str):
117117
self.driver.click(FIRST_BOOKMARK)
118118

119119
@action(current_tab_state)
120-
def delete_bookmark(self, tab_index: int):
120+
def delete_bookmark(self, tab_index: int=None):
121121
"""
122122
Delete the current bookmark.
123123
:param tab_index: Index of the tab to delete the bookmark from.

0 commit comments

Comments
 (0)