I need to replace a portion of following url in selenium webdriver+python:
https://ve-215:8443/cloudweb/dropbox_authorized?oauth_token=l8eYuFG8nux3TUHm&uid=69768040
I need to replace ve-215 to a ip address say 192.168.24.53
I tried using replace but it doesnt work.
Following is code I am using:
current_url=driver.current_url
print(current_url) #prints the url of the current window.
current_url.replace("ve-215", "192.168.53.116")
print(current_url) #print url with replaced string
driver.get(current_url) #open window with replaced url
Can anyone help me with what is wrong with the above code?