[build] Attempting to fix flickering tests.
- Simplified the xpath for actions on jobs.

(cherry picked from commit 1ab4d09a89a31e02548bad85961440959d34ce15)