fix(page.click): teach puppeteer click wrapped links (#2822)

This patch teaches Puppeteer to click elements that are
part of inline layout and that wrap on multiple lines.

Fixes #2798.
This commit is contained in:
Andrey Lushnikov
2018-06-29 12:03:02 -07:00
committed by GitHub
parent 59e7f7ebb6
commit 5955affab0
3 changed files with 79 additions and 22 deletions

View File

@@ -0,0 +1,29 @@
<style>
:root {
font-family: monospace;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
div {
width: 10ch;
word-wrap: break-word;
border: 1px solid blue;
transform: rotate(33deg);
line-height: 8ch;
padding: 2ch;
}
a {
margin-left: 7ch;
}
</style>
<div>
<a href='#clicked'>123321</a>
</div>
<script>
</script>