-
Notifications
You must be signed in to change notification settings - Fork 595
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
Element not found - can't replicate might be your Chrome JavaScript settings #806
Comments
Thank you @rouilj we'll need all the medical help, well-wishes and prayers. I can't replicate your issue. There is some outdated code in your script. For eg
PhantomJS is still available with -n or -nobrowser switch but I have tried, this website does not seem to work correctly for PhantomJS. I'm running using the latest Chrome browser on a macOS laptop. Try this, copy your script and my sample script above to another Windows or macOS laptop to see if it works. It might be some settings on your Ubuntu laptop + Chrome that disables JavaScript from running. TagUI will launch Chrome with the default JS settings for the system. On normal Windows and macOS laptops, Chrome should run with JS enabled. |
Also, you can add a |
Hi Ken:
Thanks for replying.
In message <kelaberetiv/TagUI/issues/806/[email protected]>,
Ken Soh writes:
Thank you @rouilj we'll need all the medical help, well-wishes and prayers.
You're welcome.
I can't replicate your issue. There is some outdated code in your script.
For eg ***@***.***="title"] does not exist on the webpage.
On: https: //rouilj.dynamic-dns.net/demo/issue1 when logged in with
username admin, password admin I see:
<input id="title" name="title" required="" size="30" type="text"
value="Welcome to the tracker START HERE">
Doesn't that match //input[@name="title"]?
It should be `//*[@id="issue_entry"]/span`.
This looks like you weren't logged in.
The following works for me and the link to close the notification box
works.
What version of tagui were you testing with? I can send you my entire
script (off the ticket) if that would help.
https://rouilj.dynamic-dns.net/demo/
type search-text as 1
click submit
show ***@***.***="issue_entry"]/span
tap ***@***.***="notifications"]/legend/span/a
PhantomJS is still available with -n or -nobrowser switch but I have
Ah that is good to know.
tried, this website does not seem to work correctly for PhantomJS.
So it looks like PhantomJS is not running the javascript? So a
PhantonJS bug? (Which is unlikley to be fixed since PhantomJS
development has stopped.) It used to work fine with PhantomJS. I
wonder what changed?
I'm running using the latest Chrome browser on a macOS laptop. Try
this, copy your script and my sample script above to another Windows
or macOS laptop to see if it works.
I'll see if I can dig up a windows system.
It might be some settings on your Ubuntu laptop + Chrome that disables
JavaScript from running.
I run tagui on an Asus Eeebox EB1036 (more details at: https:
//rouilj.dynamic-dns.net/demo/issue1 n the first message) . No X or
graphical console. Command line only. I usually ssh into the system to
use it.
TagUI will launch Chrome with the default JS settings for the
system. On normal Windows and macOS laptops, Chrome should run with
JS enabled.
Well I get a seg fault running tagui 6. Looks like chrome is
segfaulting and then tagui hangs. It doesn't log any output just hangs.
```
~/develop/tagui/tagui$ src-6.00/tagui tracker_test.tag
src-6.00/tagui: line 328: 16300 Segmentation fault (core dumped) $chrome_command $chrome_switches $window_size $headless_switch > /dev/null 2>&1
```
Is there some way I can debug the startup of tagui and see if we can
figure out what's crashing chrome. Even being able to see the expanded
command line used to run chrome would help.
Thanks for your help.
--
-- rouilj
|
I've verified that on my macOS laptop, the following works after logging in with admin / admin -
Thus it seems like some issue with the browser settings on your Linux laptop. PhantomJS runs JavaScript but it might be it does not work with this website. I'm using the latest version, I download the https://github.com/kelaberetiv/TagUI/archive/master.zip and overwrite my local copy. You can modify the file tagui/src/tagui and add a line before that chrome_command line -
That will try to show the full command used. Then you can try running it manually. Likely you should get the same segmentation error. And would need to search for solution on the web why this is happening for your Chrome on your Linux PC. PS - my part-time contract with AI Singapore is ending and I'll not be renewing for time being. My colleague @siowyisheng will help support TagUI users through GitHub issues. |
Thanks Kenosh. Didn't look to see it as a shell script. I found the cause, but not sure what the answer is. The command line is: google-chrome --user-data-dir=chrome/tagui_user_profile --remote-debugging-port=9222 about:blank --window-size=1366,842 If run with the DISPLAY environment variable set it starts the chrome browser. If run without DISPLAY set it seg faults. Since I ssh without a remote X server I see the segfault. Should this invocation include --headless? I cn;t see how it would work from CI or a chron job etc if there was no DISPLAY. Also note that creating an empty chrome subdirectory causes chrome to start by asking the user if chrome should be the default browser and if data should be sent to chrome. So either more flags are needed (to answer/suppress these interactive questions) , the profile directory shouldn't exist, or the profile must exist at the path given. -- rouilj |
Hi John, sorry I was away past few months - tebelorg/RPA-Python#144 Can I check with you if you are still facing issues around this scenario? For headless mode, the |
Hello Ken: I have a workaround for this, so I'll close it. Glad your back and hope you mom continues her recovery. Hope you have a great week. -- rouilj |
Thank you @rouilj ... She was discharged from hospital last weekend, after 6 months. Condition is still bad but hopefully in a different environment her recovery could go faster. |
Thank you, have a nice week! |
I realize you have a personal emergency. I hope your mom gets better soon. No urgency on this ticket.
I am using tagui 5.11 to test https:// rouilj.dynamic-dns.net/demo/ (url split to prevent crawlers).
on xubuntu - Ubuntu 18.04.4 LTS.
The following command fails:
with the error:
Using the inspector/dev tools in chrome it looks like it should work when logged in as user admin password admin at the url: https:// rouilj.dynamic-dns.net/demo/issue1
The script subset is:
From the snapshot issue1.1.png it looks like the 'a' tag item is missing.
That link is created using javascript, and it looks like javascript is not being run on the page.
Javascript is supposed to convert the topics select input into a select2 input widget.
However it appears in the snapshot as a regular select input.
This used to work under an earlier version of tagui. Do I have to do something special now to get javascript to work?
(Also I tried using 6.0, but trying to use it with chromium (hangs) and google-chrome (seg fault) doesn't work. I guess PhantomJS is no longer an option??)
Any ideas?
Thanks.
-- rouilj
The text was updated successfully, but these errors were encountered: