Hello I want use chrome to run my testcase on testcafe and after test some testcase I want change it into Emulate a Device, lets say I want change it into device Iphone X, Is it possible to change it in the middle of test? thanks
If you want to emulate window size and portrait/landscape orientation only, you can use the resizeWindowToFitDevice method. See the following article: https://devexpress.github.io/testcafe/documentation/reference/test-api/testcontroller/resizewindowtofitdevice.html
resizeWindowToFitDevice
However, if you need to emulate User Agent or touch device, you can do it only when TestCafe starts. See the following article for more details: https://devexpress.github.io/testcafe/documentation/guides/concepts/browsers.html#use-chromium-device-emulation
2.1m questions
2.1m answers
60 comments
57.0k users