Skip to content

Commit

Permalink
feat: support jquery syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Stngle committed Jul 13, 2019
1 parent abecbc7 commit eb50498
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions chrome-extension/js/jquery-3.4.1.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion chrome-extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"all_frames": true,
"match_about_blank": true,
"run_at": "document_start",
"js": ["js/foreground.js"]
"js": [
"js/foreground.js",
"js/jquery-3.4.1.min.js"
]
}],
"web_accessible_resources": [
"js/foreground.js",
Expand Down
2 changes: 1 addition & 1 deletion lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ function startRecorder(options){

}
}
yield browser.url('chrome-extension://' + (debug ? 'dloihppejiolohmfmhdceaikmmfmmemf' : 'cinambcalcehocefblhgmhajlkncnlpo')+'/'+(mobile?'mobile':'start')+'.html?port='+serverPort);
yield browser.url('chrome-extension://' + (debug ? 'dloihppejiolohmfmhdceaikmmfmmemf' : 'jfmcbcebnmpmphcepdknjlkbihjpmeej')+'/'+(mobile?'mobile':'start')+'.html?port='+serverPort);
yield browser.eval('document.title="'+__('recorder_browser_title')+' - UIRecorder"');
console.log(__('recorder_browser_opened').green);
recorderBrowser = browser;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uirecorder",
"version": "3.0.2",
"version": "3.0.3",
"description": "Tool for record ui test case",
"main": "./index",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"macaca-mocha-parallel-tests": "2.x",
"macaca-reporter": "1.x",
"resemblejs-node": "1.0.0",
"selenium-standalone": "6.x.x"
"selenium-standalone": "6.x.x",
"jquery": "3.x"
},
"devDependencies": {
},
Expand Down
1 change: 1 addition & 0 deletions template/jwebdriver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const $ = require('jquery');
const fs = require('fs');
const path = require('path');
const chai = require("chai");
Expand Down
Binary file modified tool/uirecorder.crx
Binary file not shown.

0 comments on commit eb50498

Please sign in to comment.