Techiio-author
Started by Jofar ArcharNov 9, 2021

Open
Accessing SalesForce with Cypress.IO

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I'm attempting to get entry to salesforce through cypress however as soon as I sign within the take a look at stops and salesforce takes over the complete browser. I'm able to visit my salesforce sandbox page however I can't get a test to progress past there

Here is my code to access SalesForce:

///<reference types="Cypress"/>
describe("Visit SalesForce with Request", function()
{
  it("Visits SalesForce", function()
  {
    const url = "https://test.lightning.force.com";
    const username = "user@compnamy.com.ecommerce";
    const password = "password";
    cy.request(`${url}/?un=${username}&pw=${password}`)
    .then(() =>
    {
        cy.visit(url);
        // Sign in to SalesForce 
        cy.get('#wrap').find('input').eq(2).click();
        // Does not execute beyond this point
        cy.reload();
        cy.log("Hello, world!");
    });
  });
});

0 Replies

You must be Logged in to reply
Trending Technologies
15
Software40
DevOps46
Frontend Development24
Backend Development20
Server Administration17
Linux Administration26
Data Center24
Sentry24
Terraform23
Ansible83
Docker70
Penetration Testing16
Kubernetes21
NGINX20
JenkinsX17
Recommended Blogs
1
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance