Giter Site home page Giter Site logo

Q: Redirect issue about tagui HOT 11 CLOSED

aisingapore avatar aisingapore commented on May 21, 2024
Q: Redirect issue

from tagui.

Comments (11)

kensoh avatar kensoh commented on May 21, 2024

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.

thim81 avatar thim81 commented on May 21, 2024

Since CasperJS is not supported on Chrome, I run the tests with Firefox in the visible mode.

from tagui.

thim81 avatar thim81 commented on May 21, 2024

For now there is no way around the gmail redirect?

from tagui.

kensoh avatar kensoh commented on May 21, 2024

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.

thim81 avatar thim81 commented on May 21, 2024

@kensoh

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.

thim81 avatar thim81 commented on May 21, 2024

@kensoh

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.

thim81 avatar thim81 commented on May 21, 2024

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.

thim81 avatar thim81 commented on May 21, 2024

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.

kensoh avatar kensoh commented on May 21, 2024

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.

thim81 avatar thim81 commented on May 21, 2024

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.

kensoh avatar kensoh commented on May 21, 2024

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.

laurentj/slimerjs#636

from tagui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.