Skip to content

Commit 569584a

Browse files
committed
python test page server shouldn't greedy match /page* for the 'numbered' dynamically generated pages
1 parent 2d38be8 commit 569584a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/test/selenium/webdriver/common/webserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def do_GET(self):
5555
"""GET method handler."""
5656
try:
5757
path = self.path[1:].split('?')[0]
58-
if path[:4] == "page":
58+
if path[:4] == "page" and path[4] == '/':
5959
html = """<html><head><title>Page{page_number}</title></head>
6060
<body>Page number <span id=\"pageNumber\">{page_number}</span>
6161
<p><a href=\"../xhtmlTest.html\" target=\"_top\">top</a>

0 commit comments

Comments
 (0)