1

I am using Capybara 1.1.4 with poltergeist as PhantomJS driver. When I run this code on ruby:

visit('some_url')

I get 'about_blank'. It happens when I open specific dev environment. With other sites' urls it works great. Maybe someone knows how to fix it?

4

1 回答 1

0

'some_url' 在其他域中吗?如果是,Capybara(和 Cucumber)在测试其他域,甚至是子域时有几个限制。我的意思是,如果没有变通方法,它将无法工作。

于 2013-07-02T17:51:28.520 回答