-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get URL for updated webpage URL #392
Comments
Hi Pallav, I see, you mean getting the URL of the updated webpage URL. You can use the url() helper function to do that -
For a list of other useful helper functions, see https://github.com/kelaberetiv/TagUI#helper-functions |
Pasting Pallav's further comments in #236, the use case is for an explicit popup window, not a normal link which brings current tab to a new page. hi Kensoh 2.click //a[text()="Click Here"] 3.echo url() in step 3 it is returning the launched url (http://demo.guru99.com/popup.php) but when i perform step 2 a new tab will be opened so i need the what url is launched in step 2 |
You can use the popup step to access the new tab. But you need to know at least some keyword in the new tab to identify which tab you wants to access. More details on popup step here, click to expand the pro steps - https://github.com/kelaberetiv/TagUI#steps-description Both examples below work because the popup tab has an 'article' keyword in URL
So it will show the output below -
|
hello @kensoh how i save the url on a .txt file? update: |
Yep that's right. The
|
http://demo.guru99.com/popup.php |
Posted reply here for benefit of other users - #411 |
Hi! nice to see you all! I am stuck at a problem. I want to know how to navigate to a webpage by opening a new tab in the same browser window?? Actually I am extracting some data from a webpage then navigate to the specified page to use this data. But my current webpage reloads and navigates to the new url. I need to open the current webpage as well as a navigate to other webpage in a new tab, to use the extracted data. Please help me if someone can! |
TagUI does not natively support running multiple tabs unless it is initiated by the main webpage to open new tab. You can try using visual automation mode to do it the way you do manually, or you can break the automation into 2 parts. First part extract data from website 1, second part use data on website 2. |
I need the url for newly launched window.
ex:
https://github.com/kelaberetiv/TagUI
click //*[@id="readme"]/div[2]/article/p[7]/a
then a new tab will be opened, i need to get the newly launced url.
kindly help
thanks in advance
The text was updated successfully, but these errors were encountered: