end-to-end

Protractor - find element in iframe

徘徊边缘 提交于 2019-12-21 18:04:10
问题 in very top of my page I have call of iframe: <iframe ng-if="webpadUrl" id="webPadIframe" ng-src="http://Path/To/iFrame?sessionId=9bc9989441c8c9cfb9ff5bdc381a72ea" seamless="seamless" class="fullscreen ng-scope" src="http://Path/To/iFrame?sessionId=9bc9989441c8c9cfb9ff5bdc381a72ea"> </iframe> Inside of iframe I have something like: <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 5845 3897"> and below that multiple <g> with different ID and so on.. <g id="30_0_80" transform=

Testing templates in Protractor?

老子叫甜甜 提交于 2019-12-21 03:36:27
问题 What's the best way to write assertions that should apply across every page in a site? I'm testing to see if an element exists in the footer of my site, so the element should exist on all pages. I am thinking of writing a separate file for testing template elements of the site, and then include this in all specs. It doesn't seem like anyone else is doing this though? 回答1: First of all, for writing cleaner tests and having a better understanding of what your target site consists of, apply the

Using Tensorflow's Connectionist Temporal Classification (CTC) implementation

拜拜、爱过 提交于 2019-12-20 08:50:44
问题 I'm trying to use the Tensorflow's CTC implementation under contrib package (tf.contrib.ctc.ctc_loss) without success. First of all, anyone know where can I read a good step-by-step tutorial? Tensorflow's documentation is very poor on this topic. Do I have to provide to ctc_loss the labels with the blank label interleaved or not? I could not be able to overfit my network even using a train dataset of length 1 over 200 epochs. :( How can I calculate the label error rate using tf.edit_distance?

AngularJs Protractor: Element in slide out menu not visible

懵懂的女人 提交于 2019-12-19 04:02:02
问题 I'm back with more Protractor Q&A. So, I am coming across an issue when trying for find an element that is inside a slide out menu. Snippet of html: <div class="ng-scope" ui-view="navmenu"> <nav class="menu slide-menu-left ng-scope"> <md-content class="md-default-theme" style="display: table" ng-click="slideMenuLeft()" tabindex="0"> <button class="md-button md-default-theme" ng-transclude="" style="width:50%;height:72px;border-right:1px solid #ddd;border-bottom:1px solid #ddd" ng-click=

mock $httpBackend in angular e2e tests

依然范特西╮ 提交于 2019-12-18 12:30:02
问题 Does anyone have an idea how to mock $httpBackend in angular e2e tests? The idea is stubbing XHR requests while running tests on travis-ci. I'm using karma to proxy assets and partials from my rails app running on travis. I want to do acceptance testing without real DB queries. Here is part of my karma config file: ... files = [ MOCHA, MOCHA_ADAPTER, 'spec/javascripts/support/angular-scenario.js', ANGULAR_SCENARIO_ADAPTER, 'spec/javascripts/support/angular-mocks.js', 'spec/javascripts/e2e/**/

Code coverage for Protractor tests in AngularJS

◇◆丶佛笑我妖孽 提交于 2019-12-18 11:55:55
问题 I am running some e2e tests in my angularJS app with protractor (as recommended in the angularJS documentation). I've googled around and cannot find any information on how to measure coverage for my protractor tests. I think I'm missing something here... is there any way to get a code coverage report for protractor e2e tests? Or is it simply a feature for unit tests? 回答1: This is achievable using Istanbul. Here is the process, with some example configurations that I've extracted from our

Protractor gives “Unable to start a WebDriver session” error

孤者浪人 提交于 2019-12-18 05:57:08
问题 I already have started a server with webdriver-manager start , but I get this error when I try to run protractor: Using the selenium server at http://127.0.0.1:4444/wd/hub [launcher] Running 1 instances of WebDriver ERROR - Unable to start a WebDriver session. C:\...\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:113 var template = new Error(this.message); ^ UnknownError: unknown error: cannot find Chrome binary My config file looks like this: exports.config =

Protractor: Scrolling a table and testing for infinite scroll

偶尔善良 提交于 2019-12-18 05:14:07
问题 How can I get protractor to scroll down on a table? My table does infinite scrolling - it loads 20 records, and when the second-to-last-row is displayed, it fetches the next 20 records. Not all records are in view...some are below yet to be scrolled into, and some are above when the user has scrolled past it. I was thinking the test is it('should fetch next set of records on scroll') { element.all(by.id('users')).map(function (elm) { return elm; }).then(function (users) { expect(users.length)

How to stop protractor from running further testcases on failure?

只愿长相守 提交于 2019-12-18 01:58:29
问题 Is there a way of quitting test suite and stop executing further test cases, if a test case fails in protractor? 回答1: In case of jasmine testing framework, you are not the first asking about it. There are relevant open discussions/issues on exiting after a first failure, --fail-fast option: Bail on first failure --fail-fast option? Please add --fail-fast support Long story short, this is an open issue and some day jasmine would have the functionality built-in. Currently, use a third-party

How to stop protractor from running further testcases on failure?

我只是一个虾纸丫 提交于 2019-12-18 01:57:23
问题 Is there a way of quitting test suite and stop executing further test cases, if a test case fails in protractor? 回答1: In case of jasmine testing framework, you are not the first asking about it. There are relevant open discussions/issues on exiting after a first failure, --fail-fast option: Bail on first failure --fail-fast option? Please add --fail-fast support Long story short, this is an open issue and some day jasmine would have the functionality built-in. Currently, use a third-party