Navigate TestDriver like a pro with these tips and tricks.
hover-image
and hover-text
hover-image
and hover-text
command, TestDriver may use the description to identify the image, especially if multiple images are visible. If multiple images on the screen match the description, TestDriver may not be able to determine which one to interact with. To improve accuracy, use specific and unique descriptions for images.
TestDriver may not accurately locate matches in certain cases. This can lead to unexpected behavior when using the hover-image
or hover-text
command. For example, if you specify a description that’s too generic or similar to other images on the screen, TestDriver may not be able to identify the correct image to interact with. To improve accuracy, use specific and unique descriptions for images and text.
When executing the hover-image
and hover-text
commands, TestDriver uses the provided description to identify the target image or text. If the description is too generic or matches multiple elements on the screen, TestDriver may not be able to determine which one to interact with, leading to unexpected behavior. To improve accuracy, always use specific and unique descriptions for both images and text.
hover-text
for single characters (ex: 1
, >
, |
)hover-text
may not work as expected for these cases. If you need to interact with single characters or symbols, consider using the match-image
command with a screenshot of the target element instead.
<label>
s to match empty text inputs.hover-text
on the label associated with the input. This should focus the input field.
This is more reliable than trying to match the empty input itself, which may not have any visible text. You can always use match-image
to match the input field if needed.
assert
assert
is not aware of the past, so avoid writing “assert” steps that rely on previous state. Instead, use assert
to check the current state of the page against strict criteria.