Category : qa

Virtual scoll view contais too many <p> tags inside it, which is not having any unique id. Similar like this view. enter image description here I tried using: browser.executeScript("window.scrollTo(0,10000);").then(callback); However, the scrollbar that it access is the browser itself not the div. Any leads or suggestion is greatly appreciated. Thanks! Source: Angular..

Read more

Given an attribute that has this type of markup: <label r4e-toggle=”” class=”sm ng-scope ng-isolate-scope r4e-toggle” ng-attr-disabled=”{{audit.profileOptedOut || undefined}}” tooltip=”Opted In” ng-if=”audit.source.listing.correctable &amp;&amp; audit.hasListingCorrecting”><input type=”checkbox” ng-model=”audit.optedOut” ng-true-value=”false” ng-false-value=”true” ng-click=”location.optOutAudit($index, audit)” ng-disabled=”location.optOutDisabled” class=”ng-pristine ng-untouched ng-valid”><span class=”slider”></span></label> how do i reference it by the “r4e-toggle” that is blank? As it appears in Google Dev tools: Source:..

Read more

I am trying to find all child elements within a parent webelement. this is the parent element: tableRow = element.all(by.xpath(“//tr[contains(@class, ‘ng-scope’)][@ng-repeat=’audit in location.displayedProfileAudits’]”)).get(0); I’ve tried the following snippets of code, and they all fail: //this fails with a timeout var resultIcons = tableRow.all(by.xpath(“.//i[contains(@class, ‘icon’)][contains(@ng-if, ‘field.match’)]”)); //this fails due to: TypeError: tableRow.element.all is not a function ..

Read more

I’m trying to access the label that is contained within a row. This code works, however, it finds all labels of that type, instead of one in a particular/parent row: expect(element(by.xpath(“//span[@ng-click=’location.viewAudit(audit)’][contains(@class, ‘source-name’)]”)).isPresent()); //label for the source name This is the code that is failing for me: var tableRow = element(by.xpath(“//tr[contains(@class, ‘ng-scope’)][@ng-repeat=’audit in location.displayedProfileAudits’]”)).getWebElement(); expect(tableRow.element(by.xpath(“//span[@ng-click=’location.viewAudit(audit)’][contains(@class, ‘source-name’)]”)).isPresent()); ..

Read more