Skip to content

Commit e6e7587

Browse files
committed
Update tutorial in the example test
1 parent 201d762 commit e6e7587

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/my_first_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_basic(self):
4343
#
4444
# 2. Most methods have the optional `timeout` argument. Ex:
4545
# [
46-
# self.get_text('div center', timeout=15)
46+
# self.get_text("#content", timeout=15)
4747
# ]
4848
# The `timeout` argument tells the method how many seconds to wait
4949
# for an element to appear before raising an exception. This is
@@ -53,17 +53,17 @@ def test_basic(self):
5353
#
5454
# 3. There's usually more than one way to do the same thing. Ex:
5555
# [
56-
# self.assert_text('free to copy', 'div center')
56+
# self.assert_text("Hooray robots!", "#content")
5757
# ]
5858
# Is the same as:
5959
# [
60-
# text = self.get_text("div center")
61-
# self.assert_true("free to copy" in text)
60+
# text = self.get_text("#content")
61+
# self.assert_true("Hooray robots!" in text)
6262
# ]
6363
# Or:
6464
# [
65-
# text = self.find_element('div center').text
66-
# assert("free to copy" in text)
65+
# text = self.find_element("#content").text
66+
# assert("Hooray robots!" in text)
6767
# ]
6868
#
6969
# And the following line:

0 commit comments

Comments
 (0)