Hi guys, I need assistance here please with regards to the ui elements.
I am using activity so that after it goes to the next page but it opens the page but then it does not go to it,it remains in the 1st page and type there, while it’s suppose to type on 2nd page.
It’s very unclear what you are doing because you haven’t shown the webpage or the rest of your process.
As a guess - your Click ‘Add Note’ activity is probably inside a ‘Use Application / Browser’ card. If your 2nd page opens in a new window, you need to use a new ‘Use Application / Browser’ card for the new window
you can use anchor base activity, in that first you can use find element and in the right side box you can use your click activity.
is there is any hotkey which helps to goes to next page . you can use that.
since the new url is dynamic, but somehow half of the url will be same the id or few things will be change( whatever its get change can you able to extract those data from the first page)
This is the 1st page, when I Click on ‘Add Notes’ it’s suppose to take me to another page for that particular person John, so hence i say it’s dynamic because the page will create a URL according to that person.
Hi @Baskar_Gurumoorthy ,
Thanks for your response, I don’t have hot key I just click it opens.
On the generated url I tried to remove the last part some of the data but it did not work
Okay then why are you concerned about what the URL is? It doesn’t matter what the URL is.
And then what do you mean by “it opens the page but then it does not go to it,it remains in the 1st page and type there, while it’s suppose to type on 2nd page.”?
How can it remain on the 1st page if it has already navigated to the 2nd page?
Again it is extremely unclear what is happening or what you expect to happen.
It doesn’t matter what the URL is. Click Add Note to open the new tab, then add a Use Application/Browser activity and click Indicate. Select the newly opened tab. Look at the selector - specifically remove the URL from the selector - and use other properties such as title etc in the selector. Often the title and other things will change, but you use wildcards to deal with that:
Title 1: John Doe Account Information
Title 2: Jane Smith Account Information
The selector would be:
title='*Account Information'
By the way, if the URL is somewhat similar you can leave the url property in the selector but use wildcards. For example:
Another good strategy is if you can calculate the URL ie:
"http://someserver.com/user/" + UserID
…then don’t bother clicking the Add Note button. Just calculate what the URL will be, and set Use Application/Browser to open a new browser to that URL - make sure to set the open property to always. And I suspect you’ll also want the new window closed when you’re done, so set the close property to always. Once the sub-window is done with and closed, you’ll automatically fall back to the original main page where you can continue. Put the second Use Application/Browser inside the main one, not after it.