Page tree
Skip to end of metadata
Go to start of metadata

Last updated: May 14, 2018 17:26


Getting "An element could not be located on the page using the given search parameters" error while trying to run application by xpath of the baseboard element.


This behavior is consistent with pure Appium and the reason for it is a stricter check for whether the active application is the application under test.

Use the following code to start another application using Perfecto extension, which will in turn disable Appium's front app validation:

	Map<String, Object> settingsHashMap = new HashMap<>();
	settingsHashMap.put("identifier", "");
	Object result7 = driver.executeScript("mobile:application:open", settingsHashMap);
	Map<String, Object> params6 = new HashMap<>();
	params6.put("keySequence", "HOME");
	Object result6 = driver.executeScript("mobile:presskey", params6);