Is login_script can be done from Selenium IDE plugin ?

Thierry Beauquier's Avatar

Thierry Beauquier

27 Mar, 2017 08:03 PM

Hi,

I am trying to create a login_script based on Selenium IDE plugin in Firefox but I could not get arachni to find the elements to full up the username/password. Is it feasible and in which format should I saved the action in order for arachni to use it ?

Attached a screenshot of the form

Regards
Thierry

  1. Support Staff 1 Posted by Tasos Laskos on 28 Mar, 2017 08:14 AM

    Tasos Laskos's Avatar

    I'm not sure what you mean, can you please show me the login script you've used and the error your getting?

  2. 2 Posted by Thierry Beauqui... on 28 Mar, 2017 01:22 PM

    Thierry Beauquier's Avatar

    I used the FF plugin to get the following piece of login_script code to log in on the target node.

    browser.goto "https://10.120.87.250/ng/login"
    browser.findElement(By.name("username")).sendKeys("user");
    browser.findElement(By.name("password")).sendKeys("passwd");
    browser.findElement(By.xpath("//button[@type='submit']")).click();

    Attached the arachni errors

  3. Support Staff 3 Posted by Tasos Laskos on 29 Mar, 2017 09:38 AM

    Tasos Laskos's Avatar

    You need to use the Watir API, what you are currently doing isn't supported.

  4. Tasos Laskos closed this discussion on 12 May, 2017 12:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac