You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be really awesome if skrape{it} would provide matchers that are using the kotlinx.html DSL
To compare the inner html of an selected element (picked by skrapeit) with an expected markup (defined by html dsl).
Describe the solution you'd like
htmlDocument {
div {
withClass = "foo"
find First {
// the selected html by skrapeit could be something like `<div class="bar foo" id="xx">`
html toBe div("foo bar") { id = "xx" }
}
}
}
Additional context
One tricky part will be to unify the html somehow. For instance <div id="xx" class="foo bar" > has to match <div class="bar foo" id="xx">
The text was updated successfully, but these errors were encountered:
I think it would be really awesome if skrape{it} would provide matchers that are using the kotlinx.html DSL
To compare the inner html of an selected element (picked by skrapeit) with an expected markup (defined by html dsl).
Describe the solution you'd like
Additional context
One tricky part will be to unify the html somehow. For instance
<div id="xx" class="foo bar" >
has to match<div class="bar foo" id="xx">
The text was updated successfully, but these errors were encountered: