Forum Discussion
We were using test complete to test our web application before .We changed our application to RWD(Responsive Web design) site.
When i tried using the same script i was getting error on Sys.Browser().Page("*") as a result i was not able to find element on the page.
That time i realize it might happened because of RWD change and may be it will need any new add in to test RWD sites.
Please advice.
I don't know if there is a SPECIFIC add-in/plug-in for RWD... however, if the application under test has changed, then, yes, you will need to do some rework... page titles can change, object recognition criteria will change, etc.
Technically speaking, the line of code you posted should be able to find any page open in any browser. However, it is ANY page on ANY browser so, if you have multiple pages open, multiple browsers, etc., the result could be ambiguous as to WHICH page is returned. Try being more specific with regards to the object identification to make sure that you are targetting the correct page for your tests.
- nishaa1238 years agoContributor
I am using this line of code (Sys.Browser().Page("*")) to identify the current page name followed by the element name in order to identify the element on the navigated Page but this line of code is not giving me any result .
As this is very basic function and it is regardless to any application,i am more concern about it.
Is there any specif change in code i need to do as we have RWD now??
- tristaanogre8 years agoEsteemed Contributor
That line of code, as you mentioned, IS very basic. So, it should work.
Could you post the code as you are using it in your test? It may be helpful to see how you are using it in context. Perhaps a sample function or subroutine that shows how you are using it and then a screenshot or text output of any error messages you are getting.For example, I tried the following in JavaScript:
function TestSomething() { var page; page = Sys.Browser().Page('*'); Log.Message(page.Name); }
and it gave me the following output.
Related Content
- 4 years ago
Recent Discussions
- 20 minutes ago
- 28 minutes ago