You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,10 @@ from scrapy_selenium import SeleniumRequest
38
38
39
39
yield SeleniumRequest(url, self.parse_result)
40
40
```
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.
42
42
```python
43
43
defparse_result(self, response):
44
-
print(response.meta['driver'].title)
44
+
print(response.request.meta['driver'].title)
45
45
```
46
46
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)
0 commit comments