tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/5114-authentication-failed-with-reacjs-formArachni: Discussion 2018-03-26T07:43:16Ztag:support.arachni-scanner.com,2012-07-01:Comment/448214432018-03-20T20:36:52Z2018-03-20T20:36:55ZAuthentication failed with ReacJS form<div><p>I had similar problems with my script before. Not as a fix, but rather as a suggestion, I can advise to add some sleeps commands. Try below approach and let us know if that helps<br>
sleep 2<br>
browser.goto 'https://********<strong><em>.com/'<br>
sleep 2<br>
browser.screenshot.save('screen1.jpg')<br>
browser.text_field(:id => 'username').wait_until_present<br>
browser.text_field(:id => 'username' ).set '</em></strong><em>'<br>
browser.text_field(:id => 'password').wait_until_present<br>
browser.text_field(:id => 'password' ).set '</em>***'<br>
browser.element(:id => 'confirm-login' ).click<br>
browser.screenshot.save('screen2.jpg')</p>
<p>Another approach will be to check there is only one unique id of 'username' on the page.</p></div>Gordontag:support.arachni-scanner.com,2012-07-01:Comment/448214432018-03-26T07:43:14Z2018-03-26T07:43:14ZAuthentication failed with ReacJS form<div><p>That could work sometimes but this is the proper way to wait for elements: <a href="http://www.rubydoc.info/gems/watir-webdriver/Watir/Wait">http://www.rubydoc.info/gems/watir-webdriver/Watir/Wait</a></p></div>Tasos Laskos