AnsweredAssumed Answered

Issues in including Selenium script for WAS

Question asked by Hakimuddin Attarwala on Feb 27, 2017
Latest reply on Mar 2, 2017 by Hakimuddin Attarwala

I am getting issues while scanning application using selenium script below are the details :

Case 1 :
1. Crawl settings: Application URL used in Specify URL or regular expression to trigger this script* entry field
- Selenium IDE recorded script with valid url .
- The recorded script contains the following:
a. The base url mentioned as above to open the application
b. Steps to authenticate in the application (i.e scripts passes on user name and password credentials) as our applications landing page is the login form.
c. Steps to Navigate accross the application after successful authentication
2. Authentication settings:
- Set credentials used to authenticate against web application :
- Type : Standard Login
- Standard Configuration:
- Valid username and password
On running the Discovery/Vulnerability scan I get the following in the report:
1. 150007 Web Application Authentication Method: Auth successful against form: <Application URL>
Web Application Authentication Record: Form Auth Record <Username>, #191166
User Name: <UserName>
2. 150100 Selenium Diagnostics
Log for Selenium script: CrawlScript
Executing: |open | <Application URL> | |
Executing: |type | name=username
Executing: |type | name=password
Executing: |clickAndWait | css=button.full-size | |
Executing: |click | link=XXXX | |
currentTest.recordFailure: Element link=XXXX not found

Case :2
1. Crawl settings: Difference in application url, instead of url we have constructed the url using Regular Expression after successful login in Specify URL or regular expression to trigger this script* entry field.
-URL with RegEx (https:\/\/<ApplicationURL>/index.html/?page=(\d+))
- Selenium IDE recorded script with valid url.
- The recorded script contains the following:
Steps to Navigate accross the application after successful authentication

2. Authentication settings:
- Selenium authentication script used to authenticate against web application :
- Type : Selenium script

On running the Discovery/Vulnerability scan I get the following in the report:
1. 150094 Selenium Web Application Authentication Was Successful
Selenium authentication was successful for the script:
2. 150100 Selenium Diagnostics
Log for Selenium script: SeleniumAuthenticationScript
Executing: |open | <Application URL> | |
Executing: |type | name=username
Executing: |type | name=password
Executing: |clickAndWait | css=button.full-size | |
Log for Selenium script: SeleniumCrawlScript
Executing: |setTimeout | 120000 | |
Executing: |waitForElementPresent | link=XXXX | |
currentTest.recordFailure: Timed out after 120000ms
Executing: |click | link=Abc| |
currentTest.recordFailure: Element link=XXXX not found


Please let me know if any further details are needed or I am doing something wrong in the configuration

Outcomes