This is a migrated thread and some comments may be shown as answers.

Feature request, or is this doable

3 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 17 Dec 2012, 01:28 PM
Can I set the browser playback width (in order to test visibility of responsive items?)

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 17 Dec 2012, 04:26 PM
Hello Steve,

Yes it is doable via this single code:

ActiveBrowser.Window.Move(new System.Drawing.Rectangle(0,0,800,600), true);
 
This will redraw the browser to 0,0 position with 800px width 600px height.

Note that you will need to add a assembly reference System.Drawing.

Hope this helps. All the best,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 17 Dec 2012, 05:17 PM
Anytime I add a coded step the entire test is no longer runnable

Test.Functional\Medportal\Atomic\GadgetBarOpenClose.tstest.cs: Line 52: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
Test.Functional\Medportal\Atomic\GadgetBarOpenClose.tstest.cs: Line 59: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
Test.Functional\Medportal\Auth\Login.tstest.cs: Line 52: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
Test.Functional\Medportal\Auth\Login.tstest.cs: Line 59: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)


0
Boyan Boev
Telerik team
answered on 18 Dec 2012, 08:53 AM
Hi Steve,

The most common reason for these errors is a namespace mismatch. Probably the name of the namespace in GadgetBarOpenClose.tstest.cs and Login.tstest.cs is different then in the project settings and this is causing the problem. 

Please open these files and rename the namespace such as it is in the project settings (see the attached screenshot).

Note that to view the entire class in the Test Studio you should convert one of the step in code and click on "View Class" button. Please see the second attached screen shot. 

Let me know if this helps.

Regards,

Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Boyan Boev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or