Line 1: Line 1:
 
== GET1-1: GET Forms ==
 
== GET1-1: GET Forms ==
* Create page '''Selentium/GET1-1'''
+
1. Create page '''Selentium/GET1-1'''
 
+
2. Add following content and save
* Add following content and save
 
 
 
 
<syntaxhighlight lang="html">
 
<syntaxhighlight lang="html">
 
<form action="get" id="GET1-1">
 
<form action="get" id="GET1-1">
Line 11: Line 9:
 
</form>
 
</form>
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
3. In the form with id="GET1-1" type "'''MyTest'''" in the text field with name "'''test'''".
* In the form text field type : "MyTest".
+
4. Click the submit button with value "'''GET1-1 test'''".
+
5. Verify the result is the same page reloaded, but the url will now have an argument and value of  : '''test=MyTest'''
* Click the submit button with value "GET1-1 test".
 
 
 
* Result is the same page reloaded but the url will now have an argument and value of  : test=MyTest
 

Revision as of 11:32, 15 May 2023

GET1-1: GET Forms

1. Create page Selentium/GET1-1 2. Add following content and save

<form action="get" id="GET1-1">
  <!-- GET1-1 Selenium test-->
  <input type="text" name="test" /><
  <input type="submit" value="GET1-1 test" />
</form>

3. In the form with id="GET1-1" type "MyTest" in the text field with name "test". 4. Click the submit button with value "GET1-1 test". 5. Verify the result is the same page reloaded, but the url will now have an argument and value of : test=MyTest