Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cross browser testing using codedui?

i have issue in cross browser testing using codedui. Using below code,

Process.Start("firefox", url);
BrowserWindow.CurrentBrowser = "firefox";
Browser = BrowserWindow.Launch(new System.Uri(url));
Keyboard.SendKeys("^{0}");

all code developed in IE . but now i have to execute code in firefox or chrome.I am going to execute the code in forefox.I am using this code here

Browser = BrowserWindow.Launch(new System.Uri(url));

in this line getting error like "An error occurred while connecting to Firefox".how to resolve this issue?I installed selenium components also. if i remove this line I am getting diffrent error like " Unable to find browser"...Please help.

like image 671
saran Avatar asked Jul 25 '26 20:07

saran


1 Answers

Out of the box Visual Studio doesn't support cross browser CodedUI testing.

You're going to need to install Selenium components to allow for cross browser testing in Visual Studio.

Details on that can be found here:

http://blogs.msdn.com/b/visualstudioalm/archive/2012/10/30/introducing-cross-browser-testing-with-coded-ui-tests.aspx

Selenium components can be found here:

http://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d

like image 55
LuFaMa Avatar answered Jul 27 '26 09:07

LuFaMa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!