selenium get url python code example
Example 1: how to get the url of the current page in selenium python
print(driver.current_url)
Example 2: python get html from url
import requests
url = requests.get("http://google.com")
htmltext = url.text
Example 3: javascript get current url
var currentUrl = window.location.href;
Example 4: how to get the current web page link in selenium pthon
driver.current_url
Example 5: python phantomjs current url
print(browser.current_url)