-
-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
95 changed files
with
562 additions
and
573 deletions.
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": "selenium-ide", | ||
"version": "4.0.1-alpha.75", | ||
"version": "4.0.1-alpha.76", | ||
"private": false, | ||
"description": "Selenium IDE electron app", | ||
"author": "Todd <[email protected]>", | ||
|
@@ -111,7 +111,7 @@ | |
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.4", | ||
"@seleniumhq/code-export-ruby-rspec": "^4.0.0-alpha.3", | ||
"@seleniumhq/get-driver": "^4.0.0-alpha.3", | ||
"@seleniumhq/side-api": "^4.0.0-alpha.43", | ||
"@seleniumhq/side-api": "^4.0.0-alpha.44", | ||
"@seleniumhq/side-commons": "^4.0.0-alpha.2", | ||
"@seleniumhq/side-model": "^4.0.0-alpha.5", | ||
"@seleniumhq/side-runtime": "^4.0.0-alpha.35", | ||
|
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ProjectEditor/components/AppBar/index.tsx → ...e/src/browser/components/AppBar/index.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
3 changes: 2 additions & 1 deletion
3
.../ProjectEditor/components/Main/Header.tsx → ...de/src/browser/components/Main/Header.tsx
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...s/ProjectEditor/components/Main/index.tsx → ...ide/src/browser/components/Main/index.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
25 changes: 0 additions & 25 deletions
25
packages/selenium-ide/src/browser/windows/Logger/controller.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/selenium-ide/src/browser/windows/Logger/renderer.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/selenium-ide/src/browser/windows/PlaybackWindow/controller.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
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
95 changes: 53 additions & 42 deletions
95
packages/selenium-ide/src/browser/windows/PlaybackWindow/preload/record-shortcuts.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 |
---|---|---|
@@ -1,53 +1,64 @@ | ||
// import { ipcRenderer } from 'electron' | ||
import Recorder from './recorder' | ||
import {singleton as locatorBuilders} from './locator-builders' | ||
import { singleton as locatorBuilders } from './locator-builders' | ||
|
||
let recorder: Recorder | ||
let eleTarget: HTMLElement | null | ||
|
||
const shortcutHandler = new Map | ||
|
||
shortcutHandler.set('verifyText', function () { | ||
return (eleTarget as any).innerText | ||
}) | ||
shortcutHandler.set('verifyChecked', function () { | ||
return '' | ||
}) | ||
shortcutHandler.set('verifyElementPresent', function () { | ||
return '' | ||
}) | ||
shortcutHandler.set('waitForElementVisible', function () { | ||
return '1000' | ||
}) | ||
|
||
async function onContextMenu (event: any) { | ||
eleTarget = event.target as HTMLElement | ||
/* | ||
const result = await ipcRenderer.invoke('show-shortcut-menu') | ||
if (!result) { | ||
eleTarget = null | ||
return | ||
async function onContextMenu(event: any) { | ||
const el = event.target as HTMLElement | ||
const targets = locatorBuilders.buildAll(el); | ||
const selectedCommand = await window.sideAPI.menus.openSync('playback') | ||
switch (selectedCommand) { | ||
case 'Record Wait For Element Present': | ||
recorder.record( | ||
event, | ||
'waitForElementPresent', | ||
targets, | ||
'', | ||
false, | ||
null, | ||
true | ||
) | ||
break | ||
case 'Record Wait For Element Visible': | ||
recorder.record( | ||
event, | ||
'waitForElementVisible', | ||
targets, | ||
'', | ||
false, | ||
null, | ||
true | ||
) | ||
break | ||
case 'Record Wait For Element Text': | ||
recorder.record( | ||
event, | ||
'waitForElementText', | ||
targets, | ||
el.innerText, | ||
false, | ||
null, | ||
true | ||
) | ||
break | ||
case 'Record Wait For Element Editable': | ||
recorder.record( | ||
event, | ||
'waitForElementEditable', | ||
targets, | ||
'', | ||
false, | ||
null, | ||
true | ||
) | ||
break | ||
} | ||
recorder.record( | ||
event, | ||
result.cmd, | ||
locatorBuilders.buildAll(eleTarget), | ||
shortcutHandler.get(result.cmd)(result.params) | ||
) | ||
*/ | ||
recorder.record( | ||
event, | ||
'click', | ||
locatorBuilders.buildAll(eleTarget), | ||
shortcutHandler.get('click')([]) | ||
) | ||
} | ||
|
||
export function attach (_recorder: Recorder) { | ||
export function attach(_recorder: Recorder) { | ||
recorder = _recorder | ||
window.addEventListener('contextmenu', onContextMenu) | ||
} | ||
|
||
export function detach () { | ||
export function detach() { | ||
window.removeEventListener('contextmenu', onContextMenu) | ||
} | ||
} |
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
Oops, something went wrong.