编码UI跨浏览器firefox不工作

本文关键字:工作 firefox 浏览器 UI 编码 | 更新日期: 2023-09-27 18:14:44

我有一个codedUI问题。我在ie中记录了步骤。步骤是启动一个网站,登录到网站和更多…如果按照说明安装了CodedUITestCrossBrowser,我可以找到http://blogs.msdn.com/b/visualstudioalm/archive/2012/10/30/introducing-cross-browser-testing-with-coded-ui-tests.aspx

我在每个浏览器中运行测试。对于IE和chrome,测试工作,但对于Firefox,它不会午餐URL。页面打开了,但什么也没做。我的测试将会给出这个错误。

测试方法qaautomation . reseller . dristributorcreation抛出异常:Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Failed to start up socket within 45000在Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.Utility。MapAndReThrow(例外的例外)在Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService。发射(Uri Uri)在Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory。发射(Uri Uri)在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow。LaunchPrivate (Uri Uri)在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow灵活;> c_ DisplayClass3d.b _3c ()在Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker。调用方法(Func ' 1函数,UITestControl控件,Boolean fireplaybackerrovent, Boolean logAsAction)在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow。发射(Uri Uri)在QaAutomatisation.UINewTabWindowsInterneWindow。在UIMap.Designer.cs中的LaunchUrl(Uri url):第425行在UIMap.Designer.cs中的qaautomation . uimap . loginadmincp():第71行在Reseller.cs:第44行

        //The code that have been generated is 
        // Go to web page 'http://master.controlpanel3.test.mail.dev.sherweb.com/' using new browser instance
        this.UINewTabWindowsInterneWindow.LaunchUrl(new System.Uri(this.LoginAdminCPParams.UINewTabWindowsInterneWindowUrl));
        // Type 'xyz' in 'Username' text box
        uIUsernameEdit.Text = this.LoginAdminCPParams.UIUsernameEditText;
         public void LaunchUrl(System.Uri url)
    {
        this.CopyFrom(BrowserWindow.Launch(url));
    }

我正在使用visual studio premium 2012与更新2,Selenium 2.32.1和跨浏览器扩展。

祝你一切顺利

再次感谢您的帮助!

编码UI跨浏览器firefox不工作

我得到这个错误是因为我在执行测试之前运行了一个Firefox实例。在Firefox中运行代码UI测试之前,请确保关闭所有Firefox浏览器窗口。