Comments (7)
Thanks @jefleponot for your feedback! Can you tell me more about your execution environment? I can run on my macOS with below output, and for my CentOS server I can run without firefox option.
START - automation started - Tue Mar 07 2017 16:38:55 GMT+0700 (ICT)
https://www.yahoo.com - Yahoo
enter search-box as github
print search-box - github
click search-button
wait 6.6
snap page
snap logo
snap page to results.png
snap logo to logo.png
https://duckduckgo.com - DuckDuckGo
enter search_form_input_homepage as The search engine that doesn't track you.
wait 4.4 seconds
https://duckduckgo.com/ - DuckDuckGo
FINISH - automation finished - 16.2s
from tagui.
To improve on the robustness of the sample flow, I have also updated the flow to explicitly use ca.yahoo.com instead. I think for some users, using yahoo.com might end up serving country-specific versions and the element identifiers will be different.
from tagui.
@jefleponot I looked at the code leading to this error and issue #19, it looks like you may be trying to run it under Windows. As mentioned in the Set Up section, TA.Gui is still in beta and not yet ported to Windows. I'll close this issue but please let me know if there are other reason for the error message!
from tagui.
Hi @kensoh
I test it on Ubuntu 16.04
from tagui.
Hi @jefleponot, will you be able to kindly create a dummy user / account to your Ubuntu so that I can try debugging? I don't have access to a Ubuntu system now, following is the code block which throws the error. What it does is checking for presence of . after removing relative paths and then validates if the file extension is gui or txt.
// check flow filename for .gui or .txt or no extension
$script = $argv[1]; if ($script=="") die("ERROR - specify flow filename as first parameter\n");
if (strpos(str_replace("./","",str_replace("../","",$script)), '.') !== false) // check for extension
if ((pathinfo($script, PATHINFO_EXTENSION)!="gui") and (pathinfo($script, PATHINFO_EXTENSION)!="txt"))
die("ERROR - use .gui or .txt or no extension for flow filename\n");
In the meantime, if you don't have a test user for me to debug, can you try commenting off for example below, and see if any other error messages appear? Hopefully more clues can lead to isolating the root cause of this error message.
// check flow filename for .gui or .txt or no extension
$script = $argv[1]; if ($script=="") die("ERROR - specify flow filename as first parameter\n");
// if (strpos(str_replace("./","",str_replace("../","",$script)), '.') !== false) // check for extension
// if ((pathinfo($script, PATHINFO_EXTENSION)!="gui") and (pathinfo($script, PATHINFO_EXTENSION)!="txt"))
// die("ERROR - use .gui or .txt or no extension for flow filename\n");
I'm reopening the issue as it is happening on Linux-flavor system.
from tagui.
Adding on, /src/tagui_parse.php
is where above code block comes from, it's the main engine of TA.Gui project where natural language syntax gets parsed into working CasperJS JavaScript code.
UPDATE - if anyone has similar errors with Ubuntu or other Linux distributions please give a shout here, trying to isolate the cause of the error reported by Jef.
from tagui.
Hi @jefleponot, I might have found the cause. Do you happen to install at a directory path containing a '.' in the directory name? If yes it will break, have committed fix that will work now for directory paths containing '.'. Below is the commit message. Let me know if the error message still happens for you!
- error is likely due to directory path having a '.'
- eg ta.gui will break while master or tagui is fine
- amended code to work for directory paths with '.'
from tagui.
Related Issues (20)
- loading libcrypto in unsafe way HOT 1
- How to extract data from a website using TagUI
- js语法不支持Map和Set,希望更新一下js的版本
- js syntax does not support Map and Set, hope to update the version of js
- keyboard
- How would I search for an image on the screen and click on coordinates relative to it? HOT 1
- Unable to Click Xpaths within iframes, because iframe names are changing every time
- 离线部署时在应用OCR识别时遇到问题。 HOT 1
- Can it specify the created Python virtual environment in the Tagui script?
- How to get name of the latest downloaded file?
- No support for JS ES6 syntax
- Difference fron Cucumber.js?
- [RPA][ERROR] - TagUI process ended unexpectedly - ERROR - undefined is not an object (evaluating 'e.message.charAt') HOT 1
- run next code giving fault: F:\tagui\src>tagui f:\tagui\flows\samples\1_google.tag
- Method in Tagui HOT 1
- Text not found
- Is it possible to get name of the latest downloaded file?
- Read method issue
- Is there any support for google sheets?
- Is the project no longer under maintenance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tagui.