Ask a Question

I wanna receive the URL

SOLVED
yoorahn
Frequent Contributor

I wanna receive the URL

Hellow! 

I wanna make automation Web test using Test Complete's Keyword Test.! 

So, Can I receive the current URL? Can you explain that method? 

 

Exactly, all I wanna do is..

1. I saved the contact information on web page. 

2. then the web page changed to that I saved contact information page. (and page create new URL)

3. that contact information page has new URL. 

4. I wanna save wherever or copy that New URL and paste on address window.

 

So I would have to say..

I wanna save New URL at appropriated space or something like that.. and then go to New URL.

How can I handle this? Please give me the ideas!

 

3 REPLIES 3
Marsha_R
Community Hero

You can set a variable to the value on the screen that you want to save and then reference that variable later when you want to browse to another page.

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/index.html

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/set-variable-va...

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/launching-brows...

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
yoorahn
Frequent Contributor

Thank you very much ! 

your solution pretty helpd.! 

but When I run the test that apply your solution, below image error comes out.

How can I handle this problem? 

or is it okay if I just let it ?

 

 {2CC9B2D6-B94A-4A37-9146-E4EB6580A198}.png.jpg

Is that coming from the line in the test when you go to the new URL?  Let's see a screenshot of that line in the test.  Yes, you can leave it, but it should be easy to clean up.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: