Skip to content

Commit 20ff8ae

Browse files
barseghyanarturclemfromspace
authored andcommitted
correct docs on how to access original selenium driver (#26)
1 parent 44e9e19 commit 20ff8ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ from scrapy_selenium import SeleniumRequest
3838

3939
yield SeleniumRequest(url, self.parse_result)
4040
```
41-
The request will be handled by selenium, and the response will have an additional `meta` key, named `driver` containing the selenium driver with the request processed.
41+
The request will be handled by selenium, and the request will have an additional `meta` key, named `driver` containing the selenium driver with the request processed.
4242
```python
4343
def parse_result(self, response):
44-
print(response.meta['driver'].title)
44+
print(response.request.meta['driver'].title)
4545
```
4646
For more information about the available driver methods and attributes, refer to the [selenium python documentation](http://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.remote.webdriver)
4747

0 commit comments

Comments
 (0)