Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 19:00
    tfaron commented #5133
  • Jan 31 2019 07:28
    cnishina closed #5135
  • Jan 31 2019 07:28
    cnishina commented #5135
  • Jan 30 2019 16:23
    ThabisoGithub closed #5136
  • Jan 30 2019 16:23
    ThabisoGithub edited #5136
  • Jan 30 2019 16:23
    ThabisoGithub edited #5136
  • Jan 30 2019 16:21
    ThabisoGithub opened #5136
  • Jan 30 2019 16:18
    IgorSasovets commented #4177
  • Jan 30 2019 15:05
    andrewchan-clover commented #4177
  • Jan 30 2019 13:43
    IgorSasovets commented #5135
  • Jan 30 2019 12:37
    EnzDev edited #5125
  • Jan 30 2019 11:47
    akshaymondal opened #5135
  • Jan 29 2019 14:33
    uinest commented #4822
  • Jan 28 2019 21:38
    cnishina commented #5132
  • Jan 28 2019 21:37
    cnishina commented #5134
  • Jan 28 2019 21:37
    cnishina closed #5134
  • Jan 28 2019 21:36

    cnishina on selenium4

    chore(release): bumpb version t… (compare)

  • Jan 28 2019 11:30
    think4ideas opened #5134
  • Jan 28 2019 11:01
    toniedzwiedz commented #2735
  • Jan 28 2019 09:42
    azorrozua commented #4786
saikrish06
@saikrish06
is there any other function other than includes which I can use here?
Shubhojit Bhattacharjee
@ShubhojitBhattacharjee

Hi,
I am in a decision-making situation to either use Protractor or Selenium to create test automation framework for two apps, one is Angular-based, another is Vue JS based.

Advantages of using Protractor:
Comes bundles with Aungular app, no need to add exrta dependency
Supports more element locating mechanisms by providing methods like filter() and cssContainingText()
Supports scripting languages like Typescript and JavaScript

Main reason for using Protractor was because prtractor had its own locator types (like ng-model, etc) in order to handle elements in ealier version of Angular apps. However after Angular 2, those locators types have become irrelevant and now protractor uses locators just like in Selenium

I also have expert level knowledge in Selenium and Java

What should be my parameters to select either Protractor or Selenium to create a test automation framework and automate integration test cases? Is execution faster in Protractor because it uses scripting language?

Raul Molina
@raulmolinah.madrid_gitlab
Buenas, me gustaría saber como puedo automatizar con protractor el interactuar con el mapa por medio del click por coordenadas. Los elementos del mapa no tienen id vienen incrustados por mapBox y estoy intentando localizar los elementos del mapa por coordendas pero no son las correctas y me salta un mensaje de error diciendo que estoy fuera del mapa a la hora de hacer, click. Necesito ayuda ya que me estoy volviendo loco. Gracias compañeros !!!
Logesh Kumar
@logeshk
Hi guys
facing one issue
need your help
Logesh Kumar
@logeshk
doing a POC for a web app which is mix of non angular and angular pages, Example Login Page is a non angular, after login its angular page , here just normal search in input, check box is failing
with no such element same code I tried with only angularjs based app
works fine
fires1989
@fires1989
waitforangularenabled() true or false
if its not angular give false else if its angular give true
Logesh Kumar
@logeshk
Tried with these 2 options as well
browser.waitForAngularEnabled(true);
browser.ignoreSynchronization = false;
fires1989
@fires1989
use md-checkbox for locating checkboxes
Logesh Kumar
@logeshk
ok
for Input box
am just trying to enter text in a inout box
*input
fires1989
@fires1989
refer guru 99 for dynamic css selector use that with google chome's plugin chropath get an understanding of the syntax of autogenerated css path and then create ur own
never use * symbol it will get more than 1 element in a page
Swathibedre
@Swathibedre
Hi everyone, I have created multiple spec files for the test, however I want to have 1 config file for all these specs but I need to run few of the specs in parallel manner.Is it possible?
Ruslan
@RuslanLizogub
Hello. Is it true that Google plans to stop supporting protractor? And what are your plans with version 6?
saikrish06
@saikrish06
Hi All,
I need help on the code below.
*/
this.enterCellValueBasedOnColumnName = function (columnName, textValue) {
return this.getColumnHeaders().then(function (val) {
console.log('All Column Headers: ' + val);
var ColumnNameIndex = val.indexOf(columnName);
return element.all(by.xpath('(.//table[contains(@class,"htCore")])[1]/tbody/tr/td')).count().then(function (totalCells) {
console.log('totalCells in the row are:' + totalCells);
for (var i = 1; i <= totalCells; i++) {
console.log("val[ColumnNameIndex] is" + val[ColumnNameIndex]);
if ((val[ColumnNameIndex].includes(columnName)) && (ColumnNameIndex < 15) && (val[ColumnNameIndex] !== 'Tax TransactionNum') && (val[ColumnNameIndex] !== 'Tax Filing Date')) {
var index = ColumnNameIndex + 1;
browser.actions().mouseMove(element(by.xpath('(.//table[contains(@class,"htCore")])[1]/tbody/tr[' + i + ']/td[' + index + ']'))).doubleClick().perform();
basePage.waitUntilElementVisible(yearSearchInputField, 3000);
basePage.enterTextWithActions(yearSearchInputField, textValue);
basePage.waitAWhile(3000);
browser.actions().mouseMove(firstDropdownValue).click().perform();
break;
}
is there any other function other than includes which I can use here?
Syam Pradeep Reddy
@syam38
Hi All,
I am using protractor to run e2e tests for my angular application and we made these tests to run in the build pipeline(azure-devops). These test cases will fail intermittently with the following error,
Failed: script timeout: result was not received in 11 seconds (Session info: headless chrome=77.0.3865.90) (Driver info: chromedriver=76.0.3809.12).
I increased the allScriptsTimeout value to 30 s and even then the tests will fail.
Is there a way to get rid of this error.
Logesh Kumar
@logeshk
Hi All
In Javascript project,
Added the folder Protractor Folder from C:\Users\Azuga\AppData\Roaming\npm\node_modules
image.png
Error : ',' expected is displayed across async wait
Logesh Kumar
@logeshk
am trying Key Up / Down
but no luck
in drop Down
Logesh Kumar
@logeshk
browser.actions()
              .sendKeys(protractor.KEYUP).perform();
Failed: sendKeysToActiveElement
Priyank Vadaliya
@priyankvadaliya
to Implement Protractor based framework which language is best c# or javascript ??
Radhajanagouda
@Radhajanagouda
Hi all, can someone help me, my framework is with control flow enabled, but can we use both async await along with promises, because i want to slowly migrate to async await file by file
Logesh Kumar
@logeshk
Hi all, how check whether iframe is switched of not ?
ArtemRudenko
@artemrudenko
@Radhajanagouda i believe yes, this should not be a problem
ninogomez
@ninogomez
Hi all. I'm getting this error UnhandledPromiseRejectionWarning: UnknownCommandError: POST /session/293923e7-06b8-4989-8eaa-bab35926386d/moveto did not match a known command when using firefox
Roman Kolodiy
@kolodiy
Hi, @cnishina, @juliemr, @sjelin
Can you guys give any news regarding further update plans for Protractor?
Roman Kolodiy
@kolodiy
It`s been a while since the last update for 6.0 version and looks like repo is dead now with lots of open PRs((
I use protractor on several projects and really interested in migrating to 6.0, but unable to do it due to several issues. Few months ago I already submitted PR to fix several issues. It successfully was merged, but still, the new version has not been published yet.
Do you need help with the maintenance of this project, and in general, will it be supported in the future?
Bharath
@bharathrocks_twitter
Hi, How to handle mac OS-based popup window? I tried with the below code but no luck
browser.actions().sendKeys(protractor.ESCAPE).perform();
Getting error: Failed: sendKeysToActiveElement
Luke
@luker2
Has anyone ever seen protractor NOT provide a full stack trace back to the .spec file? I could reproduce this in a clean project.
  • Particularly try calling $('div.someInvalidElement').click() in a separate helper file.
    • It successfully gives me a stack trace to the EXACT line that failed in .spec
  • But then try it WITHIN A PROMISE. Example: myPromise.then(() => $('div.someInvalidElement').click())
    • It provides a trace back to .spec, but directly to the it() function, not the exact line WITHIN it()
ninogomez
@ninogomez
@luker2 I think that happened to me before. However what I did is just console.log and sleep() to know where it is. I know it's not efficient but worked.
Timothy Stone
@timothystone

hey all, my google fu is failing me and I'm not asking the right query. I overheard some colleagues following the antipattern of physically opening the window to test the URL. They were further challenged that the property would not properly open the window as this._linkUrl was only loaded in the upper validation environments.

The team is trying to test a template that produces a <button> binding to the [click] and calls a method that calls window.open(this._linkUrl).

I'm trying to get them to test the value from the component, not opening windows, switching to the new window, and attempting to read the location. But I'm not speaking to the specifics of their problem, but I'm reaching out to the channel hoping for help in pointing best pattern for the team to review and implement.

Timothy Stone
@timothystone
looks like they were not even trying to look at the documentation. ugh
Luke
@luker2
@ninogomez thanks, yeah I searched around & its bizarre there are really no complaints about short stack traces. I've seen some posts about nodejs in general & bad async stack traces nodejs/node#11865. Using node 12.11.1 with --async-stack-traces didn't help this specific protractor problem. (For future searchers, this was using protractor 5.4.2) @cnishina any insight?
MuthuChess
@MuthuChess
Hey All, I'm trying to run stress test by invoking multiple chrome browsers under conf.js "multiCapabilities". Please let me know if protractor can handle all the browsers parallel or does it internally perform only one task at a time? Thanks.
avinash10993
@avinash10993
can we send protractor results from onComplete hook to oracle db