Hi all, is there a way to specify a viewport of a particular profile? For example, if I wanted a mobile profile, could I set it to always use a viewport of 375x812 to simulate it?
I’m trying to adapt some of my test cases to account for differences on mobile but running the Android emulator is proving too much for my computer so I’m hoping to find a workaround. It seems like this would be possible but I’m not sure what I’m missing.
I don’t want to add a test step to change the viewport because I want the same test to be able to run on desktop or mobile, so if I can use a profile to specify the viewport, that would be a good solution, I think.
This is what I’ve tried:
As a workaround, I’ve created a profile called ‘Mobile’ and am putting this into the beginning of each test case:
def executionProfile = RC.getExecutionProfile()
if (executionProfile == 'Mobile') {
WebUI.setViewPortSize(300, 800)
}
But I’m hoping there’s a more elegant solution!