Comments (11)
Hi @thim81 thanks a lot for giving this scenario. I've heard of issues with redirection with PhantomJS, in some situations due to lack of real-browser headers, in some situations something may be broken. Does the issue happen for you when running in visible or headless Chrome mode?
Adding on for reference a solved issue with redirection in CasperJS - https://github.com/casperjs/casperjs/issues/1600
And PhantomJS making some new commits regarding redirects - ariya/phantomjs#15044
from tagui.
Since CasperJS is not supported on Chrome, I run the tests with Firefox in the visible mode.
from tagui.
For now there is no way around the gmail redirect?
from tagui.
How do you replicate the issue? Is it you run in normal mode, let it login on the PhantomJS browser, then click on any external URL link in an email?
Adding on, when I try to copy and paste that URL in a normal browser it looks like a Google redirection notice page. If you are running within PhantomJS (default mode), maybe Gmail somehow has certain behaviour for PhantomJS that prevents external links and shows that page.
from tagui.
I'm affraid that it most be something very specific.
We are doing a work-a-round by using a temporary mail confirmation flow by using a service like mailinator instead of Gmail. That way there is no redirect issue anymore.
from tagui.
Using a alternative mail service, also causes a redirect, so it's not really clear how to resolve this in the flow?
I checked the references but I'm not sure what to do with the references? They remain open or can I do something like in my flow?
casper.start('http://tebel.org', function() {
this.echo(this.getCurrentUrl());})
casper.thenOpen('http://tebel.org/a.html', function() {
this.echo(this.getCurrentUrl());})
from tagui.
Not sure if this is related but it seems so.
Perhaps the issue is that it always opens a blank window which is actually blank.
https://image.prntscr.com/image/Sk2vetiKSUGtMMJG-fvoxg.png
from tagui.
Update: when running the flow on Chrome.
It blocks the opening of the page because it considers it a popup.
After allowing the popup in chrome, the window opens just fine on Chrome.
Perhaps this is the reason also for Firefox? That the popup gets blocked.
If I test the behaviour manually in Firefox, the window opens just fine.
Is the flow using a different Firefox engine?
This is the firefox debug
[debug] [phantom] Navigation requested: url=http://mailsac.com/dirty/[email protected]/JFDnIKgcya3koSSrrKxU3RNyygesYw3Vpw, type=Undefined, willNavigate=true, isMainFrame=true
from tagui.
Thanks for reopening this @thim81 I see, I have experience with running on Firefox when some popup or new window opens. Until now I am not sure why. TagUI uses CasperJS which uses SlimerJS which runs a wrapper around the Gecko engine.
I have experimented in the past dealing with cookies by specifying the profile but it is really hard to make any progress, even with specifying profile there is Firefox window that requires user manually selecting and can't run automatically.
There is a recent related issue at SlimerJS repo - laurentj/slimerjs#622. If you disable popup-blocking option in preferences is it able to help?
from tagui.
No such luck for now, because I checked the popup blocking settings and they all seems.
I'm using MacOS Firefox 54.0.1 (64-bit)
from tagui.
I see.. thanks @thim81 I've raised an issue at SlimerJS (the project that drives Firefox). CasperJS will talk to SlimerJS to control Firefox. You may want to subscribe to that issue so that you can get updates.
As the generated CasperJS code is correct and works for PhantomJS/Chrome, I'll close this issue for now as it seems to be some issue in the CasperJS->SlimerJS->Firefox chain.
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.