Targeting Elements

Dynamic Analysis

Publication
Dynamic Analysis
Edition date
2023-01-27
Publication date
2023-01-27T16:30:14.864407
  • Input fields: the scan engine typically runs events on an input field while filling in the field. Adding additional mouse clicks to the script, such as onFocus and onBlur events, is unnecessary and may cause problems.
  • Multiple methods: if a step fails when the script executes, use an alternate method to identify targets.
  • Elements with long waits: any command that targets an element, such as a mouse click or type command, automatically has an implicit waitForElementPresent process that runs with a 30-second timeout. If an element takes longer than 30 seconds to load, you might need to add additional waits. Veracode recommends adding these additional waits sparingly as they can increase your scan duration or cause other scan issues.