chapter 10 - handling redirects
Hi, I'm running the 3-javascriptRedirect.py file from chapter 10, and StaleElementReferenceException is not thrown, therefore the full 10 sec timeout is performed. Is this a bug?
Same for me. It just time out directly no matter what. I was wondering why checking the html tag would work. Both pages should have the html tag, the checking result will always be positive.
The output:
Timing out after 10 seconds and returning
<html><head>
<title>The Destination Page!</title>
</head>
<body>
This is the page you are looking for!
</body></html>
import requests
params = {'username': 'Ryan', 'password': 'password'} r = requests.post('http://pythonscraping.com/pages/cookies/welcome.php', params) print('Cookie is set to:') print(r.cookies.get_dict()) print('Going to profile page...') r = requests.get('http://pythonscraping.com/pages/cookies/profile.php', cookies=r.cookies) print(r.text)
the python coding does not work. I try for many time but the result is not right.