When I open the URL with driver.get(url)
, how can I get the response content of the page? Please refer to the image for more information.
Asked
Active
Viewed 7,641 times
1
![](../../users/profiles/7192772.webp)
Mahipal
- 872
- 1
- 5
- 7
![](../../users/profiles/5637735.webp)
Alex Bruce
- 495
- 7
- 21
-
Possible duplicate of [How to get HTTP Response Code using Selenium WebDriver with Java?](http://stackoverflow.com/questions/6509628/how-to-get-http-response-code-using-selenium-webdriver-with-java) – Tom May 10 '17 at 03:28
-
1my question is different with that one – Alex Bruce May 10 '17 at 05:15
-
Can you please elaborate what is your exact testing step? What worked for you? Show code. Share the relevant HTML DOM as well. Thanks – DebanjanB May 10 '17 at 05:57
-
@Dev There is a token in this page,I want to get the token when I open this page with driver.get(url), then the token text will be used for login – Alex Bruce May 10 '17 at 06:04
-
How does pattern of the token looks like? e.g. Any matching patterns? – DebanjanB May 10 '17 at 06:07