[Python] How to read responses from request in Robot Selenium

Discussão em 'Python' iniciado por Stack, Junho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I am looking for similar to cypress.intercept() in Robot framework where we read API responses for get and post requests already happening for API testing from UI without additional calls. I've not found any suitable docs. Is it doable from Robot or any helper library?

    cy.intercept('POST', '**/login').as('login-request');

    cy.wait('@login-request', { responseTimeout: TIME_OUT.pageLoad }).then(
    (intercept) => {
    const { statusCode, body } = intercept.response;
    expect(statusCode).to.eq(200);
    expect(body).property('idToken').to.not.be.oneOf([null, undefined]);
    Cypress.env('idToken', body.idToken);
    }
    );

    Continue reading...

Compartilhe esta Página