Hi,
Am using QA version. Am trying to launch same test in multiple browser. Using C# code am launching multiple browser and navigating all browser to Google page. Its working fine for me up to this, now I want to type a text “Google” and will click on “Google Search” Button.
Have added QText and BtnGSubmit to element list using “Add to project” option (Using Hover). When I tried to write a code and not getting QText and BtnGSubmit
Say “Pages.Google. “Not geeting QText and BtnGSubmit elements” please find the attached screen shot.
9 Answers, 1 is accepted
There is a slight misunderstanding how to use our Pages class. From your second screenshot, please don't use Pages.GooglePage. Instead use Pages.Google.QText and Pages.Google.BtnGSubmit as shown in your first screenshot. "GooglePage" is actually a class definition, not an object with other properties attached to it that can be used for reference.
Kind regards,Cody
the Telerik team
Register Today!
Am trying to run same test in multiple browser and am able to launch multiple browser, but am not able to do other operations in all the browser. Other operations are happing in only last browser. Please find the attached snap shot.
Please advice and let me know where I need to change the code. (Am using QA trail version).
Please find the attached snap shot.
The object "ActiveBrowser" will only point to the last opened browser. You need to follow the instructions given here.
Best wishes,Cody
the Telerik team
Register Today!
Thanks so much for the response.
Could you please let me know how to use Handlers option in QA edition.
This documentation may help some. If you have specific questions on how to handle a specific dialog, please share with us a screen shot of the dialog you need help automating so we can answer it with the right solution for you.
All the best,Cody
the Telerik team
Register Today!
Currently my application uses active directory authentication. I am trying to create a common login function for the whole project so,by just sending username and password as parameter, the logon dialog should be handled and user should be taken to the home page. When I have the login function within a particular testcase, and unchecking the step, passing parameters to the function from other step, the logon dialog is handled successfully and able to proceed, but when I moved the common login function outside the testcase and put it as common function and trying to call from other cases during login step, it fails with "Null reference exception"
a)How I can pass ActiveBrowser object to outside common function from the current executing test case
or Is there any other solution for this which can solve the problem. Please advise
If you would like to create global variables or functions in Test Studio Standalone version that are accessible from all the tests within the test project, you can create a utility class. This class will contain the intended functions or variables.
Greetings,Byron
the Telerik team
Test Studio Trainings
I have created a common function accepting Username, Password,Browser object and Manager object as parameters and calling this function whenever required to handle logon dialog. So for the entire project, logon dialog is handled by just calling this Common function
Thanks again,
Selvakumar