Skip to content

Commit

Permalink
chrome extension - update keywords for consistency (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh authored Apr 8, 2019
1 parent 3ddce04 commit 7229e79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 2,
"name": "TagUI Web Automation", "short_name": "TagUI Tool", "version": "5.0.0",
"name": "TagUI Web Automation", "short_name": "TagUI Tool", "version": "5.0.1",
"description": "Create TagUI automation flows by recording your actions",
"homepage_url": "https://github.com/kelaberetiv/TagUI",
"browser_action": {
Expand Down
8 changes: 4 additions & 4 deletions src/chrome/tagui.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ CasperRenderer.prototype.keypress = function(item) {
var text = item.text.replace(/\r\n/g,'[enter]').replace(/\r/g, '[enter]').replace(/\n/g, '[enter]');
var selector; selector = this.getControl(item);
if (selector.charAt(0) == '#') {selector = selector.substring(1);}
this.stmt('enter ' + selector + ' as ' + text);
this.stmt('type ' + selector + ' as ' + text);
}

CasperRenderer.prototype.submit = function(item) {
Expand Down Expand Up @@ -388,13 +388,13 @@ CasperRenderer.prototype.noteDownElement = function(item) {
CasperRenderer.prototype.moveCursorToElement = function(item) {
var selector; selector = this.getControl(item);
if (selector.charAt(0) == '#') {selector = selector.substring(1);}
this.stmt('move ' + selector);
this.stmt('hover ' + selector);
}

CasperRenderer.prototype.fetchElementText = function(item) {
var selector; selector = this.getControl(item);
if (selector.charAt(0) == '#') {selector = selector.substring(1);}
this.stmt('fetch ' + selector + ' to variable');
this.stmt('read ' + selector + ' to variable');
}

CasperRenderer.prototype.selectElementOption = function(item) {
Expand All @@ -410,7 +410,7 @@ CasperRenderer.prototype.cancelLastStep = function(item) {
CasperRenderer.prototype.printElementText = function(item) {
var selector; selector = this.getControl(item);
if (selector.charAt(0) == '#') {selector = selector.substring(1);}
this.stmt('print ' + selector);
this.stmt('show ' + selector);
}

CasperRenderer.prototype.saveElementText = function(item) {
Expand Down

0 comments on commit 7229e79

Please sign in to comment.