In this post we will discuss working with different browser in Coded UI Testing such as Chrome, firefox and IE using the same code which we worked in previous post.
Cross-browser testing libraries does NOT ships with Visual Studio 2013 out of the box, rather, it should be downloaded as an extension from Visual Studio Extensions and Updates as shown below
Code change for Cross-browser testing is as simple as changing the CurrentBrowser property of BrowserWindow class
//For Chrome Browser
BrowserWindow.CurrentBrowser = "chrome"
//For Firefox Browser
BrowserWindow.CurrentBrowser = "firefox"
//The default Value for BrowserWindow is IE, hence no need to mention in property
Here is the complete Video for the above discussion.
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything need to be improved in the post.
Thanks,
Karthik KK