Skip to content

Commit cf5333a

Browse files
committed
Add step to skip password import on Windows
1 parent 695f71e commit cf5333a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

modules/data/about_prefs.components.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@
7676
"shadowParent": "migration-popup",
7777
"groups": []
7878
},
79-
"password-import-skip-button": {
80-
"selectorData": "manual-passport-import-skip",
81-
"strategy": "class",
82-
"shadowParent": "migration-popup",
83-
"groups": []
84-
},
8579
"migration-progress-header": {
8680
"selectorData": "h1#progress-header",
8781
"strategy": "css",

modules/page_object_prefs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,12 @@ def import_bookmarks(self, browser_name: str, platform) -> BasePage:
557557

558558
self.click_on("migration-import-button")
559559
sleep(1)
560-
for _ in range(3):
561-
self.actions.send_keys(Keys.TAB).perform()
562-
self.actions.send_keys(Keys.RETURN).perform()
560+
561+
# On Windows, Tab to and use the Skip button
562+
if platform.lower().startswith("win"):
563+
for _ in range(3):
564+
self.actions.send_keys(Keys.TAB).perform()
565+
self.actions.send_keys(Keys.RETURN).perform()
563566

564567
# There are two messages that indicate a successful migration
565568
self.wait.until(

0 commit comments

Comments
 (0)