Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: selector inspector panel (closes #7375) #7372

Merged
merged 27 commits into from
Feb 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
005408d
feat: Selector Inspector
felis2803 Jan 20, 2023
631b389
fix: style of .selector-value
felis2803 Jan 20, 2023
e41847b
fix: highlight disappears on click
felis2803 Jan 20, 2023
4211af0
feat: added a shadow for the element frame
felis2803 Jan 20, 2023
ea2806c
fix: inspector panel does not overlap status bar
felis2803 Jan 22, 2023
c1b31a6
fix: element frames do not overlap panels
felis2803 Jan 22, 2023
a6e49f7
fix: match indicator text changed
felis2803 Jan 23, 2023
d446891
fix: match indicator text changed
felis2803 Jan 23, 2023
46adf0f
style: removed extra styles
felis2803 Jan 24, 2023
590a453
fix: prevented repeated generation of selectors for the same element
felis2803 Jan 25, 2023
25b9321
refactor: elementPicker is available from selectorInspectorPanel for …
felis2803 Jan 25, 2023
9ef6e76
fix: auxiliary input is no longer shown
felis2803 Jan 26, 2023
31264da
test: added required tests
felis2803 Jan 26, 2023
19d5402
chore: got rid of auxiliary file and scripts
felis2803 Jan 26, 2023
8d27cee
chore: new link to selector generator
felis2803 Jan 26, 2023
7937a36
test: moved selector inspector utils to 'utils' dir
felis2803 Jan 27, 2023
447272d
fix: Selector Inspector no longer causes an error in the iframe driver
felis2803 Jan 27, 2023
d0cda46
style: fixed linting errors
felis2803 Jan 27, 2023
2c08769
test: skipped tests in ie
felis2803 Jan 27, 2023
f3b5a3d
test: skipped tests in experimental debug mode
felis2803 Jan 27, 2023
966a39b
chore(deps): used published testcafe-selector-generator
felis2803 Jan 30, 2023
4c5657d
refactor: separate function _getParsedSelector
felis2803 Jan 30, 2023
2192415
refactor: parseSelectorUrl -> parseSelectorRelativeUrl
felis2803 Jan 30, 2023
3037dc9
refactor: parseSelectorUrl -> parseSelector
felis2803 Jan 30, 2023
413986b
fix: got rid of this in static method
felis2803 Jan 30, 2023
a557c6d
test: reduced the test page
felis2803 Jan 31, 2023
ef348a5
test: skipped on mobile
felis2803 Jan 31, 2023
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
Prev Previous commit
Next Next commit
style: fixed linting errors
  • Loading branch information
felis2803 committed Feb 10, 2023
commit d0cda469e2b61c49614f19e7ad6559e07ed5220e
5 changes: 3 additions & 2 deletions src/client/driver/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default class Driver extends serviceUtils.EventEmitter {
}

set consoleMessages (messages) {
return this.contextStorage.setItem(CONSOLE_MESSAGES, messages ? messages.getCopy() : null);
this.contextStorage.setItem(CONSOLE_MESSAGES, messages ? messages.getCopy() : null);
}

async _getReadyPromise () {
Expand Down Expand Up @@ -1656,7 +1656,8 @@ export default class Driver extends serviceUtils.EventEmitter {
_executeCommand (command) {
this.contextStorage.setItem(this.WINDOW_COMMAND_API_CALL_FLAG, false);

this.selectorInspectorPanel?.hide();
if (this.selectorInspectorPanel)
this.selectorInspectorPanel.hide();

if (this.customCommandHandlers[command.type])
this._onCustomCommand(command);
Expand Down