{"componentChunkName":"component---src-templates-blog-post-js","path":"/2006/06/06/using-selenium-to-test-input-validation/","result":{"data":{"site":{"siteMetadata":{"title":"Vidar's musings"}},"markdownRemark":{"id":"336b1f9e-239a-528d-96be-815774e5977b","excerpt":"When testing for security, it is important to test that the application under test (AUT) handles unexpected input properly, i.e. does not enter an unsecure…","html":"<p>When testing for security, it is important to test that the application under test (AUT) handles unexpected input properly, i.e. does not enter an unsecure state. A typical example of an unsecure response to an unexpected input is to display an exception that reveals information about the system configuration that can help a malicious user breaking in to a system.</p>\n<p>As I blogged about <a href=\"/2006/05/11/could-selenium-be-used-for-security-testing/\">earlier</a>, I am trying to use Selenium to do security testing. In order to be able to test how the AUT handles being passed a value that is not present in an HTML dropdown list, I created a Selenium extension that adds a new option to a dropdown list and selects it. This way, the test may add a new value before submitting the form to the application.</p>\n<p><a href=\"/selenium/extensions.html#adding_option_to_dropdown\" title=\"Selenium action to add a new option to a dropdown list and select it\">Here</a> is the code for the Selenium action.</p>","frontmatter":{"title":"Using Selenium to test input validation","date":"June 06, 2006","description":null}},"previous":{"fields":{"slug":"/2006/05/11/could-selenium-be-used-for-security-testing/"},"frontmatter":{"title":"Could Selenium be used for security testing?"}},"next":{"fields":{"slug":"/2006/08/06/not-invented-by-me-vs-collective-code-ownership/"},"frontmatter":{"title":"Not invented by me vs. collective code ownership"}}},"pageContext":{"id":"336b1f9e-239a-528d-96be-815774e5977b","previousPostId":"5939a248-f8f7-5f76-be49-757b5de9ade6","nextPostId":"af61030b-acec-5d02-9ac7-0f251e1fdc64"}},"staticQueryHashes":["2841359383","3257411868"]}