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
0
Hello Steve,
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
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
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?)
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
Hi Steve,
the Telerik team
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,
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings