Skip to content

Commit 8478afb

Browse files
authored
Updated selenium calls in testing tutorial. (#1832)
1 parent b3bb12a commit 8478afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/part_4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Put the following code in ``chat/tests.py``:
141141
142142
@property
143143
def _chat_log_value(self):
144-
return self.driver.find_element_by_css_selector('#chat-log').get_property('value')
144+
return self.driver.find_element(by=By.CSS_SELECTOR, value="#chat-log").get_property('value')
145145
146146
Our test suite extends ``ChannelsLiveServerTestCase`` rather than Django's usual
147147
suites for end-to-end tests (``StaticLiveServerTestCase`` or ``LiveServerTestCase``) so

0 commit comments

Comments
 (0)