Commit e564871
authored
Implement
Closes #276
The implementation's call to [toJSON][] is necessary since the object
returned by [Element.getBoundingClientRect][] is an instance of
[DOMRect][], and is therefore unable to have its keys iterated and
serialized back to Cuprite on its own.
[Element.getBoundingClientRect]: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
[DOMRect]: https://developer.mozilla.org/en-US/docs/Web/API/DOMRect
[toJSON]: segment-boneyard/nightmare#723 (comment)Capybara::Cuprite::Node#rect (#311)1 parent e0d70ab commit e564871
3 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1450 | 1464 | | |
1451 | 1465 | | |
1452 | 1466 | | |
| |||
0 commit comments