Giter Club home page Giter Club logo

Comments (19)

jferris avatar jferris commented on June 23, 2024

I'd have to try this locally and dig into Qt a bit. I'm guessing I'd need to tweak some settings to allow redirecting to the secure host.

from capybara-webkit.

estoner avatar estoner commented on June 23, 2024

Would it help if I could put together a little app that just did that redirect, to reduce effort on your end?

from capybara-webkit.

jferris avatar jferris commented on June 23, 2024

Sure - if you want to fork the project and add a failing spec, that would be great.

from capybara-webkit.

fd avatar fd commented on June 23, 2024

I get a similar error:

Unable to load URL: http://127.0.0.1:53006/concepts/new (Capybara::Driver::Webkit::WebkitError) 

http://127.0.0.1:53006/concepts/new is the page capybara was at before submitting a form with goes to http://127.0.0.1:53006/concepts.
The submit works but then http://127.0.0.1:53006/concepts 302-redirects to http://127.0.0.1:53006/concepts/1 which fails.

from capybara-webkit.

estoner avatar estoner commented on June 23, 2024

So maybe this has nothing to do with my secure port? Either capybara-webkit can't follow a 302 when a port is specified, or it can't follow a 302 at all?

from capybara-webkit.

mcollina avatar mcollina commented on June 23, 2024

I got the very same error with an URL like http://127.0.0.1:50941/enable?some=data.

from capybara-webkit.

batasrki avatar batasrki commented on June 23, 2024

Any traction here? I'm running into the same issue.

from capybara-webkit.

jferris avatar jferris commented on June 23, 2024

I haven't had time to work on this lately, so I haven't been able to look into it. If you submit a pull request, I'll make time to review it.

from capybara-webkit.

croaky avatar croaky commented on June 23, 2024

I'm hitting the Unable to load URL: http://127.0.0.1:49720/ (Capybara::Driver::Webkit::WebkitError) issue, too. In this app, when you go to the home page, a Javascript cookie is set for A/B testing and then the user is redirected using:

window.location = "/home";

from capybara-webkit.

wm avatar wm commented on June 23, 2024

I have come across this problem too. It was caused by using multipart forms.

semantic_form_for @model, :html => { :multipart => true } do |form| %>

I wonder if other people that have this problem are using forms with multipart => true

I was able to confirm that turning off multipart makes my feature past

my error was
Unable to load URL: http://127.0.0.1:54976/patients (Capybara::Driver::Webkit::WebkitError)

Not sure if this is related to issue 13

from capybara-webkit.

fd avatar fd commented on June 23, 2024

I'm using multipart forms as well.

On Thu, Jun 16, 2011 at 3:06 AM, wmernagh <
[email protected]>wrote:

I have come across this problem too. It was caused by using multipart
forms.

semantic_form_for @model, :html => { :multipart => true } do |form| %>

I wonder if other people that have this problem are using forms with
multipart => true

I was able to confirm that turning off multipart makes my feature past

my error was
Unable to load URL: http://127.0.0.1:54976/patients(Capybara::Driver::Webkit::WebkitError)

Not sure if this is related to [issue 13][
https://github.com//issues/13]

Reply to this email directly or view it on GitHub:

#16 (comment)

from capybara-webkit.

dpfranklin avatar dpfranklin commented on June 23, 2024

Joe,

Had same problem:

Unable to load URL: http://127.0.0.1:55115/ (Capybara::Driver::Webkit::WebkitError)

Found this deep in trace:

Cannot modify SafeBuffer in place (ActionView::Template::Error)

Traced it to this issue with HAML gem:

https://github.com/nex3/haml/issues/404

Its fixed in Haml 3.1.2. Updating Haml corrected apparent capybara:webkit problem. Not sure if its related to other form problems above - so just an FYI.

from capybara-webkit.

qrush avatar qrush commented on June 23, 2024

Just tried upgrading HAML here on an app with the same situation and it didn't work. Just an FYI.

from capybara-webkit.

tomdmaguire avatar tomdmaguire commented on June 23, 2024

I am having a similar issue where the driver is unable to access any HTTPS urls on my local server for which I have set up self-signed certificates. I do not have this issue using WebDriver in Firefox as I can manually load the pages and add exceptions for the certificates, and was wondering if there is a similar way of doing this for webkit?

from capybara-webkit.

azolotov avatar azolotov commented on June 23, 2024

I'm getting the same errors when I do redirects, for example

def new
  if current_user.profile
    redirect_to results_path 
  else
    @profile = current_user.build_profile
  end
end

from capybara-webkit.

cice avatar cice commented on June 23, 2024

+1 i think, trying to test a payment page integration (wirecard qpay) with sandbox test login, works fine with firefox + selenium. the thing why i'd love to switch to capybara webkit, is that you can't disable firefox's security warning about leaving a secured page. so at every test run i have to dismiss this warning manually. this means, i can't enable this feature for CI, but have to run it manually from time to time.

from capybara-webkit.

dmacvicar avatar dmacvicar commented on June 23, 2024

cice: Would this workaround work for you? #152

from capybara-webkit.

cice avatar cice commented on June 23, 2024

hi dmacvicar, i'll try that tomorrow, thnx!

from capybara-webkit.

jferris avatar jferris commented on June 23, 2024

We added the ability to ignore SSL errors to capybara-webkit a while back. Please take a look at #109 for general "unable to load URL" issues.

from capybara-webkit.

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.