546 questions
3
votes
1
answer
3k
views
How to locate a div with specific text and test id with Playwright?
I have a HTML like this:
<div>
<div>Internal Description</div>
<app-rich-text-editor>
<div data-testid="rich-text-editor">
</div>
</app-...
4
votes
0
answers
1k
views
How to adjust Playwright Codegen's locating priority/strategy in an Angular project with third-party component libraries?
This Angular project uses Emulated ViewEncapsulation, adds dynamically generated attributes like _ngcontent-xxx-c001 into most elements, which absolutely can't be used in E2E Test. Fortunately, ...
-3
votes
1
answer
276
views
How to reuse and run same test cases in every page of application using PROTRACTOR E2E?
REQUIREMENT:
For this example let us consider testing the look and feel of buttons through out the application based on my custom CSS styleguide
I have written test cases to test all the states of ...
0
votes
0
answers
113
views
Error attempting to retrieve CODE sent to gmail account using MailListener Protractor/Jasmine end to end Test
I have already installed MailListener
npm install mail-listener2 --save-dev
In My Config.js file, I have
exports.config = {
directConnect: true,
capabilities: {
browserName: 'chrome',
},
...
0
votes
0
answers
189
views
Error for e2e : Process exited with error code 135
I am new in angular and I trying to run e2e but I got the below error on windows OS and not getting what is this.
[09:50:58] I/launcher - Running 1 instances of WebDriver
[09:50:58] I/direct - Using ...
1
vote
0
answers
2k
views
chromedriver unknown error: cannot create temp dir for user data dir (80.0.3987.16)
> [email protected] e2e-ci /web-frontend
> ng e2e --webdriverUpdate=false --port=4300 --protractor-config=./e2e/protractor-ci.conf.js
10% building 3/3 modules 0 activeℹ 「wds」: Project is ...
1
vote
1
answer
870
views
How to clear browser cache in protractor
I want to validate css color change in my e2e using protractor.
I can see the color is changed in DB, but it is not reflecting in the UI, I tried to clear the cache using
browser.actions().keyDown(...
0
votes
2
answers
139
views
Element is not clickable in Protractor
I am facing issue while interacting with any element in a modal popup. I am using ChromeDriver 2.46 and all tests which involves modal popup fails on Chrome 74.
I get below error
element is not ...
1
vote
0
answers
269
views
How to fix "UnsupportedOperationError: The command 'POST /session/:id/timeouts/async_script' was not found." e2e tests,Safari,protractor,selenium?
I am trying to run Protractor e2e tests on Selenium and Safari Version 12.1.1 (14607.2.6.1.1) for the AngularJS web application. Those tests are successfully running on Chrome with the Chrome web ...
0
votes
0
answers
284
views
Angular e2e Fails at simple by.css expectation
I'm new to Angular and e2e. I'm trying to start with e2e default template that comes with Angular. I have made some little modifications to that trying to run. But some how my test fails at by.Css
...
1
vote
2
answers
425
views
How to wait browser on protractor e2e test?
I have a flaky test. Its about my loading screen. I use
await browser.wait(EC.invisibilityOf(...)); // It contains parameters.
await browser.sleep(2000);
But still sometimes it is work , it is not. ...
2
votes
4
answers
2k
views
protractor: random test fail
So I just started work on protractor tests and I'm facing the following problem - my tests fail inconsistently. Sometimes the test may pass and the next time it fails. Reasons to fail is very ...
-1
votes
2
answers
165
views
How to find an element by using 'translate'? I have a common class name. So , i can't use class name to find elements
I have below HTML stracture. Here Class is used in some other places also. Please give me some solution of it.
<div ng-show="addEditBillingCodeForm.form.code.$error.required && ...
0
votes
1
answer
163
views
Run several small test within one 'it' in E2E test using Protractor
I am working on a E2E test for a single-page web application in Angular2.
There are lots of clickable tags (not redirected to other pages but has some css effect when clicking) on the page, with some ...
0
votes
2
answers
718
views
Failed conversion the IF/Else condition to Ramda Cond
Working on an E2E using Ramda. I'm not getting how to convert a simple IF condition using Ramda Cond.
Code using If :
if (constraint == 'required') {
// then only do something
await ...