Skip to content

Commit 16aca81

Browse files
committed
Update an example test
1 parent 61e3093 commit 16aca81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/test_parse_soup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def click_menu_item(self, text):
99
# (This is useful when the selector ID is auto-generated.)
1010
pattern = re.compile(text)
1111
soup = self.get_beautiful_soup()
12-
the_id = soup.find(text=pattern).parent.parent.attrs["id"]
12+
the_id = soup.find(string=pattern).parent.parent.attrs["id"]
1313
self.click("#%s" % the_id)
1414

1515
def test_beautiful_soup_and_tinymce(self):

0 commit comments

Comments
 (0)