Skip to content

Commit

Permalink
build/qg-xxx: добавлен скролл к элементу перед кликом в Selenide-тестах
Browse files Browse the repository at this point in the history
  • Loading branch information
d-r-q committed Aug 7, 2024
1 parent 02c255b commit 93f540c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ fun open(page: QYogaPage) {
}

fun click(component: Component) {
Selenide.`$`(component.selector()).click()
Selenide.`$`(component.selector())
.scrollIntoView("{behavior: \"instant\", block: \"center\", inline: \"center\"}")
.click()
}

0 comments on commit 93f540c

Please sign in to comment.