Can we Automate the application without knowing the UI Elements ie. id, xpath etc

Is it possible to automate netflix without knowing the Netflix UI elements?
Since netflix app has minimal UI elements (PLAY, PAUSE,SEEK etc) can we handle these button using any api ?

I know the we can backward and forward the application using below:

	driver.navigate().back();
	driver.navigate().forward();

Since PLAY, PAUSE are generic events can we pre-assume the the UI elements ? Or can we get the UI elements while running the app ?

Are you able to view the elements in page screen XML dump of UIAutomatorViewer if yes u can use the elements else I think cannot be used.

1 Like