mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	workloads/googleplaybooks: Fix book selector
Do not try and use a parent element of the book entry, search for the entry directly.
This commit is contained in:
		| @@ -238,8 +238,7 @@ public class UiAutomation extends BaseUiAutomation implements ApplaunchInterface | ||||
|         // Create a selector so that we can search for siblings of the desired | ||||
|         // book that contains a "free" or "purchased" book identifier | ||||
|         UiObject label = | ||||
|             mDevice.findObject(new UiSelector().fromParent(new UiSelector() | ||||
|                                                .description(String.format("Book: " + bookTitle)) | ||||
|             mDevice.findObject(new UiSelector().description(String.format("Book: " + bookTitle)) | ||||
|                                                .className("android.widget.TextView")) | ||||
|                                                .resourceId("com.android.vending:id/li_label") | ||||
|                                                .descriptionMatches("^(Purchased|Free)$")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user