Repository navigation
v0.0.0-alpha.14
Pre-release
Pre-release
·
4 commits
to master
since this release
Highlights
- Hover, drag, and turn the mouse wheel from a location. A
LocationfromLocatecan nowHover,LeftDragorMouseDragto another location, andWheel, so a test can show a tooltip, select text, or scroll a list without unpacking coordinates:h.Locate(reel.Contains("Sencha")).Wheel(vt.MouseWheelDown, reel.Repeat(40)). Each fails the test when its location is off the screen.Harness.Wheelturns the wheel at a cell, and a scroll is recorded as onewheelannotation with its count. - Mouse commands in tapes. Tapes can
Click,Hover,Drag, andWheel, at a cell or at text on the screen, waited for asWait+Screenwaits, with an optional offset from it:Click "Name:" +6,Drag "report.pdf" "Trash",Wheel+Down "Sencha" 40.reel sgainshover,drag, andwheel, andSet MouseOverlay truedraws the pointer from a tape, as--mousedoes. - Find the right match when the text is on the screen more than once.
reel.Nthpicks a match by its place, andreel.Afterandreel.Belowlook past another match, soh.Locate(reel.Nth(2, reel.Contains("revoke")))clicks the second button.ContainsandMatchesnow report every match, in reading order. - Settle waits that ignore part of the screen. A live clock or spinner used to keep
WaitSettlefrom ever settling.WithSettleIgnoreandWithSettleOnly(andreel s wait --idle --ignore/--only) leave regions out, or watch only them. Breaking: regions moved fromreel/effectsto their own package,reel/region, andRegion.Rectstakes the screen buffer.
Installing the reel CLI
- With Homebrew, on macOS and Linux:
brew install lrstanley/tap/reel. For.mp4and.webm, alsobrew install ffmpeg. - Prebuilt binaries for Linux, macOS, and Windows, on amd64 and arm64, are attached to this release.
Changelog
⚠️ Breaking Changes
- 7fda2b3: reel: settle waits that ignore or watch only part of the screen (@lrstanley)
✨ New Features
- d5245a3: reel: mouse commands in tapes and sessions (@lrstanley)
- d5558ea: reel,steep: locate the nth match, or a match after or below another (@lrstanley)
- d3ed8ec: reel,steep: hover, drag, and turn the wheel from a location (@lrstanley)
🧹 Misc
1 change
- a338209: apply go fix and golangci-lint fixes (@lrstanley)
Full changelog: v0.0.0-alpha.13...v0.0.0-alpha.14
📦 Install
go get getsteep.dev/steep@v0.0.0-alpha.14
go install getsteep.dev/steep/cmd/reel@v0.0.0-alpha.14
go get getsteep.dev/steep/reel@v0.0.0-alpha.14
go get getsteep.dev/steep/reel/sink/native@v0.0.0-alpha.14Docs:
- getsteep.dev/steep
- getsteep.dev/steep/cmd/reel
- getsteep.dev/steep/reel
- getsteep.dev/steep/reel/sink/native
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🗝️ Find a vulnerability? Check out our Security and Disclosure policy.
- 🔗 Other useful links: