-
-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dumping session state and logs to a file
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@seleniumhq/selenium-ide", | ||
"version": "4.0.0-alpha.53", | ||
"version": "4.0.0-alpha.54", | ||
"private": true, | ||
"description": "Selenium IDE electron app", | ||
"author": "Todd <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/selenium-ide/src/main/session/controllers/Menu/menus/help.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Menu } from 'electron' | ||
import { MenuComponent, Session } from 'main/types' | ||
|
||
export const HelpCommands: MenuComponent = (session) => async () => | ||
[ | ||
{ | ||
accelerator: 'CommandOrControl+Shift+D', | ||
click: async () => { | ||
await session.system.dumpSession() | ||
}, | ||
label: 'Dump Session To File', | ||
}, | ||
] | ||
|
||
const helpMenu = (session: Session) => async () => { | ||
const menuItems = await HelpCommands(session)() | ||
return Menu.buildFromTemplate(menuItems) | ||
} | ||
|
||
export default helpMenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters