Monday 24 August 2015

Cross Browser Testing with CodedUI


Content:

1, Instal the CodedUI Test Cross Browser Plugin

2, Coding Change for Cross Browser Testing

3, Hand Coding for Maximize the Browser Window

 

1, Instal the CodedUI Test Cross Browser Plugin:

1,The Plugin will be downloaded as part of the VS update.

Steps : Open VS 2013 -> Tools -> Extensions and Updates -> Click Online

 
2,The Plugin also be downloaded from following link
3,The extension will be installed in the common file directory of your local machineC:\Program Files (x86)\Common Files\Microsoft Shared\VSTT”
 2, Coding Change for Cross Browser Testing
1, Create the Test Initialize method called MyTestInitialize().
2, Change the Current Browser Property of Browser window class.
Eg: BrowserWindow.CurrentBrowser = ”Chrome”
      BrowserWindow.CurrentBrowser = ”Firefox”
 
3, Hand Coding for Maximize the Browser Window
Cross browser does not support the default “Maximize”. So we want to write      the hand coding to Maximize the browser window.
A, Create object for Browser window class
B, Give the URL to launch the website when Browser window open
C, Maximize the Browser Window
 
 
 
 

No comments:

Post a Comment