Closed shinobi01 closed 1 year ago
It implements the Map interface and thus could be interacted as any other normal map
@mykola-mokhnach, thank you for your response. yes, we could get the info in follow actions, just post here in case anyone needed. String id = (String) ((Map<?, ?>) contextName).get("id");
Description
I'm creating test cases on iOS hybrid application, we have multiple web views when I trying to switch context, so I used .fullContextList() capability to show more informations to identifying which web view is going to be switch. but I got Maps.TransformedEntriesMap type results from getContextHandles method, how could I got the information from it?
Environment
Details
Code To Reproduce Issue [ Good To Have ]
Capabilities: return new XCUITestOptions() .setUdid(UDID) .setPlatformVersion(prop.getProperty("platformVersion")) .setDeviceName(prop.getProperty("deviceName")) .setApp(appLocation) .setAutomationName(prop.getProperty("automationName")) .fullReset() .setUseNewWDA(false) .fullContextList() .clearSystemFiles() .setNewCommandTimeout(Duration.ofSeconds(300)) .showXcodeLog(); Code Snippet: // AppiumDriver driver Set contextNames = ((SupportsContextSwitching)world.driver).getContextHandles();