plugin login_script does not load page
Created by: m6a-UdS
Hello,
I have some trouble recently with the login_script plugin: It does not load the page. Here is my login_script
:
ret = browser.goto 'https://mywebsite.com' puts 'RET: ' + ret puts 'STATUS: ' + browser.status puts 'HTML: ' + browser.html form = browser.form( action: '/login/') form.text_field(name: 'username').set('someuser') form.text_field(name: 'password').set('
<XXX>
')form.submit sleep(10)
framework.options.session.check_url = browser.url framework.options.session.check_pattern = /logout/
Here is what I got as output:
RET: about:blank STATUS: HTML:
<html><head></head><body></body></html>
Notice that this started happening not long ago (about 3 of weeks max), nothing changed about the said website; It seems to me that the login_script
stays stuck on about:blank
and never executes the browser.goto
instruction.
I was thinking about this issue with PhantomJS (our SSL stack is managed by the Amazon Load Balancers, so it should not be outdated...) but I get from this conversation that it might not be the case.
I tried this with Ubuntu 14.04 and Kali 2.0
Any help appreciated, thank you!
EDIT: Also note that the same code works as "stand-alone" ruby, when browser is a normal watir
browser.
UPDATE: Same result with the nightlies...