No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
<form | <form id="CREATE1-1"> | ||
<!-- | <!-- CREATE1-1 Selenium test--> | ||
< | <_create mwwrite="CREATE1-1/Test" mwtemplate="wsnone" /> | ||
<input type="submit" value=" | <textarea name="testing-area"></textarea> | ||
<input type="submit" value="CREATE1-1 test" /> | |||
</form> | </form> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
3. In the form with id=" | 3. In the form with id="CREATE1-1" type "'''MyTest'''" in the textarea with name "'''testing-area'''". | ||
4. Click the submit button with value "''' | 4. Click the submit button with value "'''CREATE1-1 test'''". | ||
5. Verify the result: | 5. Verify the result: | ||
| Line 27: | Line 28: | ||
5.1 Same page is reloaded | 5.1 Same page is reloaded | ||
5.2 | 5.2 Go to page CREATE1-1/Test it should have been created | ||
5.3 the | 5.3 Check the content,it should only have '''MyTest''' | ||
Revision as of 09:49, 24 August 2023
Prerequisites
| User | Sysop/Admin or in a user group defined in the setting that allows for creating FlexForms on pages |
|---|
CREATE1-1
1. Create page Selenium/CREATE1-1
2. Add following content and save
<form id="CREATE1-1">
<!-- CREATE1-1 Selenium test-->
<_create mwwrite="CREATE1-1/Test" mwtemplate="wsnone" />
<textarea name="testing-area"></textarea>
<input type="submit" value="CREATE1-1 test" />
</form>
3. In the form with id="CREATE1-1" type "MyTest" in the textarea with name "testing-area".
4. Click the submit button with value "CREATE1-1 test".
5. Verify the result:
5.1 Same page is reloaded
5.2 Go to page CREATE1-1/Test it should have been created
5.3 Check the content,it should only have MyTest