Skip to content

Commit

Permalink
Merge pull request #1310 from zapbot/update-site-content
Browse files Browse the repository at this point in the history
  • Loading branch information
kingthorin authored Dec 29, 2023
2 parents 072219d + 9cd1e8d commit 18b89a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq/details/setting-up-zap-to-test-dvwa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ <h2>Setting up ZAP to Test Damn Vulnerable Web App (DVWA)</h2>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">var</span> <span style="color:#a6e22e">it</span> <span style="color:#f92672">=</span> <span style="color:#a6e22e">src</span>.<span style="color:#a6e22e">getAllElements</span>(<span style="color:#e6db74">&#39;input&#39;</span>).<span style="color:#a6e22e">iterator</span>();
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">while</span> (<span style="color:#a6e22e">it</span>.<span style="color:#a6e22e">hasNext</span>()) {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">var</span> <span style="color:#a6e22e">element</span> <span style="color:#f92672">=</span> <span style="color:#a6e22e">it</span>.<span style="color:#a6e22e">next</span>();
</span></span><span style="display:flex;"><span> <span style="color:#960050;background-color:#1e0010">v</span><span style="color:#a6e22e">ar</span> <span style="color:#a6e22e">element</span> <span style="color:#f92672">=</span> <span style="color:#a6e22e">it</span>.<span style="color:#a6e22e">next</span>();
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> (<span style="color:#a6e22e">element</span>.<span style="color:#a6e22e">getAttributeValue</span>(<span style="color:#e6db74">&#39;name&#39;</span>) <span style="color:#f92672">==</span> <span style="color:#a6e22e">fieldName</span>) {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">return</span> <span style="color:#a6e22e">element</span>.<span style="color:#a6e22e">getAttributeValue</span>(<span style="color:#e6db74">&#39;value&#39;</span>);
</span></span><span style="display:flex;"><span> }
Expand Down

0 comments on commit 18b89a8

Please sign in to comment.