YEAR-END OFFER Test every 2027 release on real devices and browsers. 40% off annual plans.
Claim 40% off

Ship bug-free apps on real devices, in the cloud.

Trusted by 2 Mn+ QAs and developers to accelerate release cycles—manual, automated, and AI-powered testing on 5,000+ real Android and iOS devices.

Pcloudy digital experience testing platform
mobile app testing

Testing When There’s No DOM: Testing Games the Human Way 

Discover how QPilot’s AI Vision model enables test automation without DOM or locators by seeing and interacting with interfaces like a human tester.

Written by
Reviewed by Jeroline Jeroline

Imagine handing someone a phone, opening a game, and asking them to test it. They won’t ask for the XPath of the Play button. They’ll look at the screen, spot the button, and tap it. If a menu slides in from the side, they’ll swipe. If a card needs to move to a slot, they’ll drag it there. 

Test automation has rarely worked that way. For years, it has depended on something underneath the screen: a DOM, an element tree, an ID or a locator that tells the script what to touch. That works well until the day there’s nothing underneath the screen at all. 

This post is about that day, and about how QPilot’s new Vision model handles it by looking at the screen the way a person does.

Test on real devices
Catch issues faster with real device testing built for modern QA teams
Validate your app across real devices and browsers with faster execution, broader coverage, and less maintenance.

The quiet assumption behind most automation 

Locator-based automation rests on one assumption: every element worth interacting with can be identified by something other than its appearance. A login button has an ID. A menu item has an accessibility label. A form field has an XPath that survives from one build to the next. 

Most of the time, this holds. Native apps expose element hierarchies, and web apps expose a DOM. Frameworks have grown up around finding things in those structures, and teams have built mature suites on top of them. 

But the assumption is exactly that, an assumption. The script knows what it wants to do. It just needs to be told where. When the structure that answers “where” is missing, the whole approach has nothing to hold on to. 

Where the map disappears 

Games are the most obvious example. A game built on Unity or a similar engine draws everything onto a single surface. To the automation framework, the screen is often one big view. The Start button, the inventory panel, the character, the power-up: none of them exist as separate elements it can query. They are pixels, rendered frame by frame. 

locator-vs-vision-where- the-map-disappears

Games aren’t alone. Canvas-based interfaces, custom-rendered charts, embedded content, and certain hybrid screens behave in a similar way. Visually, there are clear buttons and clear actions. Structurally, there is nothing to find. 

Teams in this situation usually end up with a few unsatisfying options: 

  • Manual testing for everything on those screens, which is slow and hard to repeat across devices and builds. 
  • Hardcoded pixel coordinates in scripts, which break as soon as screen size, resolution, or layout changes. 
  • Custom instrumentation inside the app, which needs developer effort and a build that differs from what ships. 

None of these is wrong, but none of them scales well. 

How a human tests it 

Human testers don’t need a locator because they have two things automation traditionally lacked: they can see, and they can decide where to act based on what they see. 

A tester looks at the screen and understands it. That’s the Play button, that’s the settings icon, that’s the area where the item should be dropped. Then they act: tap here, swipe there, drag from this point to that one. If the layout shifts on a different device, they adjust without thinking about it. 

That loop of see, understand, act is what a test tool needs to reproduce when the DOM isn’t available. 

see-understand-act-how a-human-tests-it

QPilot’s Vision model and Coordinate Actions 

Test on real devices.
Ship with confidence.
5,000+
Real Devices & Browsers
50M+
Tests Executed
500+
Enterprise Customers

This is the idea behind the new Vision model in QPilot. Rather than asking the app for an element tree, QPilot reads the screen itself. It identifies where buttons and other interface elements are located visually, then interacts with them using their coordinates through Coordinate Actions. 

In practice, that means QPilot can: 

  • Tap an element by its position on the screen 
  • Swipe across the screen to scroll, dismiss, or navigate 
  • Drag elements from one location to another 

No XPath, no DOM, no locators required. The screen becomes the map. 

The distinction from hardcoded pixel scripts matters here. A script with fixed coordinates is blind: it taps a point and hopes something useful is there. With the Vision model, QPilot first works out what’s on screen and where, and then chooses the coordinates. The decision comes from what it sees, which is much closer to how a person works. 

game-journey-qpilot

And because the approach doesn’t depend on how an app is built, it applies equally to a Unity game, a canvas-based screen, or any interface where traditional locators don’t exist. 

What a complete journey looks like 

Take a typical mobile game flow. The app launches to a splash screen, then a main menu. The tester taps Play, dismisses a tutorial pop-up with a swipe, selects a level, drags a unit onto the board, and confirms the action. 

With locator-based tools, almost every step in that flow is a dead end, because none of those elements are exposed. With QPilot’s Coordinate Actions, each step becomes a visual decision followed by a precise action: find the Play button and tap it; find the pop-up and swipe it away; find the unit and the destination, then drag between them. 

Strung together, those actions form an end-to-end journey that runs on its own. The same flow that once needed a person holding a device can now be executed repeatedly, as part of a regular test cycle. 

Why this matters for QA teams 

Coverage reaches the screens that used to be off limits. Gaming and canvas-heavy screens often sit outside automation entirely. Bringing them in means regression testing no longer stops at the edge of the DOM. 

Less custom plumbing. Teams don’t have to add instrumentation or maintain fragile coordinate scripts just to get a test to run. 

Closer to real user behavior. Users don’t interact with locators. They tap, swipe and drag what they see. Testing through the same kind of interactions means you’re exercising the app the way it’s actually used. 

Repeatability. Once a journey is automated, it can run across builds and devices without someone repeating it by hand each time. 

A few practical notes 

When you start with Coordinate Actions, it helps to keep a few things in mind: 

  • Start with a short, high-value journey, such as launch to first gameplay action, and expand from there. 
  • Think in terms of what’s visible on the screen, not what’s in the code. Describing steps the way a tester would (“tap Play, swipe away the tutorial”) fits how this approach works. 
  • Validate across a few device sizes early, since visual layouts can vary between them. 

For setup details and supported actions, the QPilot documentation covers Coordinate Actions in depth: QPilot Coordinate Actions 

Closing thoughts 

The absence of a locator has long been treated as the end of the road for automation. It doesn’t have to be. When the DOM is empty, the screen still has everything a tester needs: buttons to find, gestures to make, paths to follow. 

QPilot’s Vision model brings that human way of testing to automation. It looks, it understands, and it acts, one coordinate at a time. 

Test on real devices
Catch issues faster with real device testing built for modern QA teams
Validate your app across real devices and browsers with faster execution, broader coverage, and less maintenance.
Did you find this page helpful?

Author

R Dinakar

Dinakar is a Content Strategist at Pcloudy. He is an ardent technology explorer who loves sharing ideas in the tech domain. In his free time, you will find him engrossed in books on health & wellness, watching tech news, venturing into new places, or playing the guitar. He loves the sight of the oceans and the sound of waves on a bright sunny day.

Reviewer

Jeroline

Jeroline

Head of Marketing @ Pcloudy

Jeroline is Strategic Marketing Manager at Pcloudy, where she combines her passion for marketing and advanced app testing technologies. When she's not devising marketing strategies, she enjoys reading, always with a curiosity to learn more.

Ready to find bugs before your users do?

Run your mobile test suite on 5,000+ real Android and iOS devices in the Pcloudy cloud—with parallel execution, video capture, and CI-ready workflows.

Book a Free Demo →