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
Tony
@ajklotz
Okay, looks like there is some internal stuff going on based on what I read here angular/protractor#5192
testingpro
@testingpro
Hi all, does anyone has a running example of test automation on electron (angular UI) with protractor
Mikael Larsson
@webite_gitlab
Hey,
anyone have seen issues running chrome in --headless mode after upgrading protractor to v6.0.0 ? What happens is it doesnt seem to respect this argument
mynameishsandeep
@mynameishsandeep
@webite_gitlab Hi, I had a question regarding Protractor v6.0.0. Is Protractor v6.0.0 official released ? and good candidate to upgrade from v5.4.2. Please suggest
Hi All, had a question regarding Protractor v6.0.0. Is Protractor v6.0.0 official released ? and good candidate to upgrade from v5.4.2. Please suggest
ArtemRudenko
@artemrudenko
@mynameishsandeep craig said that is too early to update yet
Thomas Mørch
@tbowmo
it seems that we should wait for protractor 6.0.1, is there a plan for when this will be available?
mynameishsandeep
@mynameishsandeep
@artemrudenko Thank you for reply.
Craig Nishina
@cnishina
Oh hi. Yeah do not use 6.0.0. I am coordinating the 6.0.1 release with the angular team. We might do some beta releases.
Shahbaaz
@shahbaazchaviwale
Hi all , my test case are getting failed when i added chrome headless.
ArleyBolivar
@ArleyBolivar
HI all, could someone help me with this approach? I have 3 specs "specs: ['spec1','spec2','spec3']," and "maxInstances: 3" How can I force to "spec2" and "spec3" to wait until "spec1" finished their work for continue his execution, but that the "spec3" doesn't depend on the execution of "spec2" conserving "maxInstances:3" so that "spec^n" run simultaneously after that "spec1" finished.
Sriharshahv
@Sriharshahv
anybody know how to assign priority to it blocks and running based on priority
GitSage
@GitSage
@ArleyBolivar I don't think there's any way to do what you're attempting. You should refactor your tests so that all specs can be run independent of each other, especially if you're sharding test execution.
Bhargavi85
@Bhargavi85
Hi, I am new to Protractor and working in a project which has iframe, when try to connect to Iframe, when i try using By.Class(username);
It says "Unable to locate the element". Is there any wrong i am doing ?
Sri Harsha
@harsha509
@Bhargavi85 is it in frames maybe (or) have you crosschecked locator in chrome console ?
Bhargavi85
@Bhargavi85
yes it is a iframe, how to access with iframe? i have given switch.to.frame(path).
Sri Harsha
@harsha509
switch into frame using frame id or frame src, then you will be able to access WebElement inside iframe
Bhargavi85
@Bhargavi85
browser.driver.switch_to.iframe.findElement(By.css, " iframepath"); I gave the path after the line browser.get(website).
cedvdb
@cedvdb
Anything weird here ?
    it('should display error message when incorrect credentials', async () => {
        const email = 'false-email@false-provider.com';
        const password = 'false-password';
        await page.login(email, password);
        const EC = protractor.ExpectedConditions;
        await browser.wait(() => {
            browser.pause();
            return EC.visibilityOf(page.errorElem); }, 10000);
        return expect(page.errorElem.getText()).toEqual('Incorrect credentials');
    });
Gėorges
@gmoussayan
Hey in here! (new to the room, protractor and automation in general, and just wanted to say hi :) )
cedvdb
@cedvdb
@gmoussayan hi
ArtemRudenko
@artemrudenko
@gmoussayan hi
@cedvdb looks not but i'd update last rows to :
await browser.wait(async () => await EC.visibilityOf(page.errorElem), 10000, 'Element is not visible');
expect(await page.errorElem.getText())
    .toEqual('Incorrect credentials');
Ramesh Kumar
@calystoramesh
Hello All,

From Login screen when I clicked "Register" link , it's redirect to another angularJS project ( baseurl/register).
in script :

navigatetoRegScreen(){
return this.getLoginScreenLoaded().element(by.css('.rgt-sec a')).click().then(function(){
return browser.driver.wait(function () {
return browser.driver.getCurrentUrl().then(function (url) {
return /register/.test(url);
});
}, 50000);
});
}

URL is redirected but page is not loaded . do you have any idea?

how to handle the multiple AngularJS under the one roof ?
Sandeep N S
@sandeep29_gitlab
How to automate gmail mails
olivvv
@olivvv_twitter
Hi
I would like to play with protractor plugins
but it does not seems to understand typescript in the plugin code
I added this in my tsconfig.json
"include": [
".e2e/test-plugin.ts"
but to no effect same error
Sandeep N S
@sandeep29_gitlab
How to automate gmail 2 way authentication?
LemonAndroid
@LemonAndroid
try xdotool or apple script/cliclick
ovartem
@ovartem
Gėorges
@gmoussayan

Hey in here. I have written the below in a separate .js file (to get today's and next month date...)

    var current = new Date();
    var dd = String(current.getDate()).padStart(2,'0');
    var mm = String(current.getMonth() + 1).padStart(2,'0');
    var yyyy = current.getFullYear();

    if (mm == 12){
        var nextAfterCurrent = new Date(current.getFullYear() + 1, 0, 1);
        var nextDD = String(nextAfterCurrent.getDate()).padStart(2,'0');
        var nextMM = String(nextAfterCurrent.getMonth() + 1).padStart(2,'0');
        var nextYYYY = nextAfterCurrent.getFullYear();
    }
    else{
        var nextAfterCurrent = new Date(current.getFullYear(), current.getMonth() + 1, 1);
        var nextDD = String(nextAfterCurrent.getDate()).padStart(2,'0');
        var nextMM = String(nextAfterCurrent.getMonth() + 1).padStart(2,'0');
        var nextYYYY = nextAfterCurrent.getFullYear();
    };    

    var today = dd + '/' + mm + '/' + yyyy;
    var nextToday = nextDD + '/' + nextMM + '/' + nextYYYY;

Im wondering how can i call today and nextToday variables on the spec.js file? (I am using POM design pattern)

Gėorges
@gmoussayan

Hey in here. I have written the below in a separate .js file (to get today's and next month date...)

    var current = new Date();
    var dd = String(current.getDate()).padStart(2,'0');
    var mm = String(current.getMonth() + 1).padStart(2,'0');
    var yyyy = current.getFullYear();

    if (mm == 12){
        var nextAfterCurrent = new Date(current.getFullYear() + 1, 0, 1);
        var nextDD = String(nextAfterCurrent.getDate()).padStart(2,'0');
        var nextMM = String(nextAfterCurrent.getMonth() + 1).padStart(2,'0');
        var nextYYYY = nextAfterCurrent.getFullYear();
    }
    else{
        var nextAfterCurrent = new Date(current.getFullYear(), current.getMonth() + 1, 1);
        var nextDD = String(nextAfterCurrent.getDate()).padStart(2,'0');
        var nextMM = String(nextAfterCurrent.getMonth() + 1).padStart(2,'0');
        var nextYYYY = nextAfterCurrent.getFullYear();
    };    

    var today = dd + '/' + mm + '/' + yyyy;
    var nextToday = nextDD + '/' + nextMM + '/' + nextYYYY;

Im wondering how can i call today and nextToday variables on the spec.js file? (I am using POM design pattern)

So with the help of @ArtemRudenko, I managed to export the .js file and use it on the spec file. I separated above code into 2 functions (getNext and getToday) and i exported each function using
exports.getNext = getNext;
exports.getToday = getToday;

and from the spec.js file, i imported the .js file same as i import the page objects; via:
var currentAndNextDate = require('../utils/current_and_next_date.js');

Thanks Artem :)

ramaaneel
@ramaaneel
Hello guys. I am facing an issue while creating protractor test with cucumber. I have 2 assertions in two different block. My first block assertion was failed (intentionally i make it as failed). My last then block was skipped.But I want to continue my all test steps even if it is pass or fail (then definitely i think i have to use soft assert).In testng we have a class called softassert. Is there something available here as well similar to that one. I am using chai package for assertion purpose
image.png
My step definition file
image.png
My result terminal. My requirement is it to execute all blocks whether if it pass or fail
TIA
Thomas
@selenium4466_gitlab
Hello All,
Have quick question has anyone were able to fix this issue, I am getting this error in CI(jenkins)
Failed: ChromeDriver did not start within 5000ms
is there a way to install those drivers globally and point test runner(protractor) to use custom location chrome drivers
instead of node_modules/protractor/node_modules/webdriver-manager/selenium
Priyaa15
@Priyaa15
image.png
image.png