end-to-end

Timed out waiting for asynchronous script result while executing protractor scripts with appium

北战南征 提交于 2019-11-26 09:57:49
问题 I have a problem while running more than one test in protractor : Timed out waiting for asynchronous script result after 60010 s The code of tutorial script which is executed just after the login script : Here the code i\'m using in my config file from A Code proposed in another question but it didn\'t solve my problem ! onPrepare: function() { return browser.getProcessedConfig().then(function(config) { var browserName = config.capabilities.browserName; browser.manage().timeouts()

Testing AngularJS with Selenium

天大地大妈咪最大 提交于 2019-11-26 08:56:24
问题 I have a SPA application on stack ASP MVC + AngularJS and I\'d like to test the UI. For now I\'m trying Selenium with PhantomJS and WebKit drivers. This is a sample testing page - view with single element. The list items <li> load dynamically from server and are bounded by Angular. <div id=\"items\"> <li>text</li> <li>text2</li> </div> I\'m trying to pass a test and there is an error in this line: _driver.FindElements(By.TagName(\'li\')) At this point there are no loaded elements and _driver

Non-angular page opened after a click

百般思念 提交于 2019-11-26 08:32:00
问题 I\'m trying to implement the following test scenario: perform a click on a logo on the page assert there is a new browser window opened (tab in Chrome) and check the current URL The problem is that the page opened in a new browser window is a non-angular page while the main page I\'m performing the click in is an angular page . Here is my first attempt: it(\"should show logo\", function () { var logo = scope.page.logo; expect(logo.isDisplayed()).toEqual(true); // opens a new page on click

Click() function isn&#39;t working in protractor scripts

牧云@^-^@ 提交于 2019-11-26 08:21:25
问题 I\'m trying to automate my tests with Protractor and Appium for an AngularJS site with jasmine framework in iPad simulator, sendkeys() function is working for username and password, but when i click into the login button the test is passed, but the action isn\'t done : no redirection to home page, and no on click effect is displayed for login button, i\'m sure that element is located correctly ! because when i expect the gettext() to be equal to\"LOGIN\" it is passed but no redirection even