Issue
I have created a script to login on JIRA using python selenium. Now I want to redirect to given url just after login on JIRA. How can I do that. Please provide sample code.
Solution
If you are using
driver.get("http://www.jira.com/")
to login to JIRA and wants to redirect after login or any certain point of time.
you can have
driver.get("http://www.some other url.com/")
to load the some other url in same tab.
In case you'd like to open in new tab :
driver.get("http://www.some other url.com/")
# some other code in the same tab
driver.execute_script('window.open("http://newURL.com","_blank");')
driver.switch_to.window(driver.window_handles[1])
Answered By - cruisepandey
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.