forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving overflow handling in isShown atom. A bunch of new tests added
for Java binding, but someone should reimplement them in JavaScript too
- Loading branch information
Showing
11 changed files
with
362 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: auto; | ||
overflow-y: auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: auto; | ||
overflow-y: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: auto; | ||
overflow-y: scroll; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: hidden; | ||
overflow-y: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: hidden; | ||
overflow-y: scroll; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: scroll; | ||
overflow-y: auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: scroll; | ||
overflow-y: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Page with overflow</title> | ||
<style> | ||
#over { | ||
width:400px; | ||
height: 300px; | ||
overflow-x: scroll; | ||
overflow-y: scroll; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="over"> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="right" onclick="document.getElementById('right-clicked').innerText='ok'">Click right</a></div> | ||
</div> | ||
<div style="height: 5000px; width: 5000px;"> | ||
Right clicked: <span id="right-clicked"></span></br> | ||
Bottom clicked: <span id="bottom-clicked"></span></br> | ||
Bottom-right clicked: <span id="bottom-right-clicked"></span></br> | ||
</div> | ||
<div style="width: 5000px;"> | ||
<div style="width: 100%; text-align: right;" ><a href="#" id="bottom-right" onclick="document.getElementById('bottom-right-clicked').innerText='ok'">Click bottom-right</a></div> | ||
</div> | ||
<a href="#" id="bottom" onclick="document.getElementById('bottom-clicked').innerText='ok'">Click bottom</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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
Oops, something went wrong.