I need to Open a Chatbox window and click on any question.
Currently triedcy.visit
and got errors cy.visit() failed trying to load:
https://us-sandbox-live.inside-graph.com/api/workflow/StartWorkflow The response we received from your web server was: 403: Forbidden This was considered a failure because the status code was not 2xx.
but able to get the element by cy.get
describe('Open chatbox', () => {
it('pass', () => {
cy.wait(2000)
cy.get('#inside_liveChatTab')
// cy.get('[aria-label="Chat"]').click('{force:true}')
cy.get('[aria-label="Chat"]').trigger('mousedown')
cy.wait(1000)
cy.get('#inside_liveChatTab[role=button]').click()
// cy.url().should('include', 'https://us-sandbox.insideyourbusiness.com/?automation-test') // => true
cy.visit('https://us-sandbox-live.inside-graph.com/api/workflow/StartWorkflow')
})
URL to test: https://us-sandbox.insideyourbusiness.com/?automation-test Below is the scenario
sc1: Click on Chatbox
sc2: Select any Option
sc3: Close Chat window