File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ Unreleased]
9
+
10
+ ### Added
11
+
12
+ - Add new example snippet: ` p-examples-dragAndDrop `
13
+
8
14
## [ 1.2.0] - 2019-07-15
9
15
10
16
### Added
Original file line number Diff line number Diff line change @@ -135,10 +135,11 @@ Below is attached a list of all supported snippets.
135
135
136
136
### General Examples
137
137
138
- | Snippet | Content |
139
- | ------------------ | ----------------------------------------------------------------------- |
140
- | ` p-examples-basic ` | Creates a basic usage example of a page |
141
- | ` p-examples-sleep ` | Creates an example that sleeps the browser with a specified time period |
138
+ | Snippet | Content |
139
+ | ------------------------ | ---------------------------------------------------------------------------------- |
140
+ | ` p-examples-basic ` | Creates a basic usage example of a page |
141
+ | ` p-examples-sleep ` | Creates an example that sleeps the browser with a specified time period |
142
+ | ` p-examples-dragAndDrop ` | Creates an example that drags the mouse from a point and drops it to another point |
142
143
143
144
<br >
144
145
Original file line number Diff line number Diff line change 371
371
" await sleep($0);"
372
372
],
373
373
"description" : " Creates an example that sleeps the browser with a specified time period"
374
+ },
375
+ "Examples - drag and drop" : {
376
+ "prefix" : " p-examples-dragAndDrop" ,
377
+ "body" : [
378
+ " // Drags the mouse from a point" ,
379
+ " await page.mouse.move($1);" ,
380
+ " await page.mouse.down();" ,
381
+ " " ,
382
+ " // Drops the mouse to another point" ,
383
+ " await page.mouse.move($2);" ,
384
+ " await page.mouse.up();"
385
+ ],
386
+ "description" : " Creates an example that drags the mouse from a point and drops it to another point"
374
387
}
375
388
}
You can’t perform that action at this time.
0 commit comments