Line 1: | Line 1: | ||
− | == GET1-1: GET Forms == | + | == GET1-1: GET Forms:Text == |
1. Create page '''Selentium/GET1-1''' | 1. Create page '''Selentium/GET1-1''' | ||
Line 7: | Line 7: | ||
<form action="get" id="GET1-1"> | <form action="get" id="GET1-1"> | ||
<!-- GET1-1 Selenium test--> | <!-- GET1-1 Selenium test--> | ||
+ | <input type="text" name="test" />< | ||
+ | <input type="submit" value="GET1-1 test" /> | ||
+ | </form> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | 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: | ||
+ | |||
+ | 5.1 Same page is reloaded | ||
+ | |||
+ | 5.2 url will now have an argument and value of : '''test=MyTest''' | ||
+ | |||
+ | 5.3 the text field with name "'''test'''" will now have the value of "'''MyTest'''" | ||
+ | |||
+ | == GET1-2: GET Forms:Checkbox == | ||
+ | 1. Create page '''Selentium/GET1-2''' | ||
+ | |||
+ | 2. Add following content and save | ||
+ | |||
+ | <syntaxhighlight lang="html"> | ||
+ | <form action="get" id="GET1-2"> | ||
+ | <!-- GET1-2 Selenium test--> | ||
<input type="text" name="test" />< | <input type="text" name="test" />< | ||
<input type="submit" value="GET1-1 test" /> | <input type="submit" value="GET1-1 test" /> |
Revision as of 11:35, 15 May 2023
GET1-1: GET Forms:Text
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:
5.1 Same page is reloaded
5.2 url will now have an argument and value of : test=MyTest
5.3 the text field with name "test" will now have the value of "MyTest"
GET1-2: GET Forms:Checkbox
1. Create page Selentium/GET1-2
2. Add following content and save
<form action="get" id="GET1-2">
<!-- GET1-2 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