plain-potato-68806
04/27/2023, 8:57 AMhttps://cdn.discordapp.com/attachments/1101069677318381669/1101069677490356295/Screenshot_2023-04-27_at_09.10.59.png▾
silly-river-29906
04/27/2023, 9:05 AMsilly-river-29906
04/27/2023, 9:05 AMplain-potato-68806
04/27/2023, 9:20 AMJavascript
cy.origin('https://www.bbc.co.uk/', () => {
cy.visit('/')
})
cy.origin('http://www.columbia.edu/~fdc/', () => {
cy.visit('/sample.html')
})
cy.screenshot()
I am expecting Cypress should not to throw any error and it has to capture the screenshot.silly-river-29906
04/27/2023, 9:37 AMplain-potato-68806
04/27/2023, 9:38 AMplain-potato-68806
04/27/2023, 9:42 AMmany-airline-45402
04/27/2023, 9:49 AMplain-potato-68806
04/27/2023, 9:50 AMmany-airline-45402
04/27/2023, 10:22 AMit('bbc', () => {
cy.visit('https://www.bbc.co.uk/')
})
it('columbia', () => {
cy.visit('http://www.columbia.edu/~fdc/sample.html')
cy.screenshot()
})
Perhaps you could explain why that wouldn't work for you?plain-potato-68806
04/27/2023, 10:33 AMit block. Moreover, I am using the cucumber-preprocessor and not the describe or it block 🙂plain-potato-68806
04/27/2023, 10:35 AMmany-airline-45402
04/27/2023, 10:57 AMcy.origin('https://www.bbc.co.uk/', () => {
cy.visit('/')
})
cy.origin('http://www.columbia.edu/~fdc/', () => {
cy.visit('/sample.html')
cy.screenshot()
})
work for you?plain-potato-68806
04/27/2023, 11:54 AMplain-potato-68806
04/27/2023, 12:05 PMmany-airline-45402
04/27/2023, 12:30 PMplain-potato-68806
04/27/2023, 12:31 PMplain-potato-68806
04/27/2023, 4:39 PMcy.screenshot({ capture: 'viewport' }) like this