Repository navigation
chore: catch up with Ferrum main - #402
Merged
Merged
Conversation
…ecated browser.reset
…matched Ferrum raises CoordinatesNotFoundError for "Could not compute content quads", which isn't a BrowserError, so the rescue never ran. The driver already lists CoordinatesNotFoundError among the invalid-element errors that Capybara retries.
…M.describeNode Ferrum fills Node#tag_name and #node_type from the serialized node, so only a shadow root (nodeType 11), which has no localName, needs checking. Every element used to cost a DOM.describeNode round trip.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to Ferrum's unreleased changes since rubycdp/ferrum#736, found while checking Cuprite against Ferrum main.
reset_browsercallsbrowser.contexts.reset;browser.resetis deprecated (ref(browser): deprecate reset in favor of contexts.reset ferrum#748) and warned on everyreset!.Ferrum::Downloadreaders, sinceawait_download!returns aDownloadinstead of an event hash (feat!: return Download objects, window_bounds in its writer's shape, add Response cache predicates ferrum#751).pinpointwrapper. Itsrescue Ferrum::BrowserErrorfor"Could not compute content quads."never matched: Ferrum raisesCoordinatesNotFoundError, which isn't aBrowserErrorand is already among the driver's invalid-element errors.switch_to_framereadsnode.frame_idinstead of diggingframeIdout ofnode.description.tag_namereads Ferrum'snode.tag_nameandnode.node_type, filled from the serialized node, instead of sendingDOM.describeNodefor every node.Driver, node and unit specs pass locally against Ferrum main (b170901), rubocop and
rbs validateare clean.