File tree Expand file tree Collapse file tree 2 files changed +32
-10
lines changed
Expand file tree Collapse file tree 2 files changed +32
-10
lines changed Original file line number Diff line number Diff line change @@ -208,4 +208,33 @@ We will choose [Selenium IDE chrome extension](https://chrome.google.com/webstor
208208
2092092 . Write test cases as follow and click ` Run all tests ` :
210210
211- ![ UI-Automation] ( ./public/SeleniumIDEAutomation.PNG )
211+ ![ UI-Automation] ( ./public/SeleniumIDEAutomation.PNG )
212+
213+ <br />
214+
215+ 3 . Save the Selenium script as ` ./public/tests/SeleniumIDE_ChromeTestWeatherBitApp.side `
216+
217+ 4 . Install [ ` selenium-side-runner ` ] ( https://www.selenium.dev/selenium-ide/docs/en/introduction/command-line-runner ) , then run the test script above from the command console.
218+
219+ ``` c
220+ StagingProjs> selenium-side-runner .\public\tests\SeleniumIDE_ChromeTestWeatherBitApp.side -c " browserName=chrome"
221+
222+ info: Running test UITests
223+ info: Building driver for chrome
224+
225+ RUNS C:/Users/markn/AppData/Roaming/npm/node_modules/selenium-side-runner/dist/main.test.js
226+ info: Driver has been built for chrome
227+ info: Finished test UITests Success
228+ PASS C:/Users/markn/AppData/Roaming/npm/node_modules/selenium-side-runner/dist/main.test.js
229+ Running project TestWeatherBitApp
230+ Running suite Default Suite
231+ √ Running test UITests (2086 ms)
232+
233+ Test Suites: 1 passed, 1 total
234+ Tests: 1 passed, 1 total
235+ Snapshots: 0 total
236+ Time: 2.75 s, estimated 7 s
237+ Ran all test suites within paths "C:\Users\markn\AppData\Roaming\npm\node_modules\selenium-side-runner\dist\main.test.js".
238+
239+ StagingProjs>
240+ ```
Original file line number Diff line number Diff line change 77 "id": "d23d883e-bf88-47ce-833d-ce98f95a5d5a",
88 "name": "UITests",
99 "commands": [{
10- "id": "fdf7489e-1db8-40b3-8b27-622dc7f25190",
11- "comment": "",
12- "command": "echo",
13- "target": "Selenium IDE Test Preparation Target: TechRolEmi Weather APP",
14- "targets": [],
15- "value": "Selenium IDE Test Preparation Target: TechRolEmi Weather APP"
16- }, {
1710 "id": "4f303c9a-bc59-4a79-be04-843c9594505a",
1811 "comment": "Test open browser URL: https://techrolemiweather.cyclic.app/about",
1912 "command": "open",
4235 }, {
4336 "id": "72d25dbb-8f58-45fb-8acb-41a960c6225d",
4437 "comment": "Test submit button `Pinpoint Weather`",
45- "command": "clickAt ",
46- "target": "css=.btn-sm ",
38+ "command": "click ",
39+ "target": "xpath=//input[@value='Pinpoint Weather'] ",
4740 "targets": [
4841 ["css=.btn-sm", "css:finder"],
4942 ["xpath=//input[@value='Pinpoint Weather']", "xpath:attributes"],
You can’t perform that action at this time.
0 commit comments