tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/3922-single-page-app-autologin-not-workingArachni: Discussion 2016-01-19T13:54:28Ztag:support.arachni-scanner.com,2012-07-01:Comment/387299592015-12-17T21:28:16Z2015-12-17T21:28:16ZSingle page app AutoLogin not working<div><p>If the form is hidden by default then the browser won't be able
to see it, for those cases it's better to write a custom <a href="http://support.arachni-scanner.com/kb/general-use/logging-in-and-maintaining-a-valid-session#with-browser-slow-">
login script</a>.<br>
Also, the autologin plugin will trigger a <code>submit</code> event
on the form instead of clicking a button, so again, you'd be better
off with a login script.</p>
<p>About ReactJS, coverage may not be optimal due to the way it
handles events (it generally works with delegated events which are
hard for Arachni to see at the moment (except for jQuery), that
<a href="https://github.com/Arachni/arachni/issues/652">feature</a>
is scheduled for v1.5).</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/387299592015-12-18T22:25:16Z2015-12-18T22:25:16ZSingle page app AutoLogin not working<div><p>Hi Tasos,<br>
Thanks for the reply. The form isn't hidden by default per-se, but
my suspicion is that because it needs to be rendered by React the
delay between dom-ready and the first react render is causing the
form to not be found.</p>
<p>With respect to it being an issue with a submit being triggered
as opposed to a click, would I still be seeing "Could not find a
form suiting the provided parameters.", or would there be another
error that would trigger? If not, is there another way I can
distinguish between that and the form actually not found in order
to get to the root of the problem?</p></div>maxpraffertytag:support.arachni-scanner.com,2012-07-01:Comment/387299592015-12-18T22:40:37Z2015-12-18T22:40:37ZSingle page app AutoLogin not working<div><p>You can tell the system to <a href="https://github.com/Arachni/arachni/wiki/Command-line-user-interface#browser-cluster-wait-for-element">
wait</a> until certain elements become visible for certain
pages.</p>
<p>The submission failure would result in the login check failing,
as the submit event would probably just <code>POST</code> the form,
which I'm guessing in your case would not result in a successful
login.</p>
<p>So, just use a login script and you'll be OK.</p></div>Tasos Laskos