diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-03 12:32:22 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-03 12:32:41 +0100 |
commit | e090974000e3d6d93ef8154becfb53bd43595843 (patch) | |
tree | d20cbe06f004e0c18826ae3a51e9ea0a9fd75bfb | |
parent | 18fb6f01818b99c430b8e0fad9d04ca1bbe7141b (diff) | |
download | netsurf-test-e090974000e3d6d93ef8154becfb53bd43595843.tar.gz netsurf-test-e090974000e3d6d93ef8154becfb53bd43595843.tar.bz2 |
basic-navigation: Test clicking on a link
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | monkey-test/basic-navigation.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/monkey-test/basic-navigation.yaml b/monkey-test/basic-navigation.yaml new file mode 100644 index 0000000..7d24294 --- /dev/null +++ b/monkey-test/basic-navigation.yaml @@ -0,0 +1,46 @@ +title: Test basic click navigation +group: initial +steps: +- action: launch + language: en + options: + - enable_javascript=1 +- action: window-new + tag: win1 + +# Ensure we can load the page properly in the first place +- action: navigate + window: win1 + url: about:about +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + window: win1 + checks: + - text-contains: "about:Choices" + +# Now let's try and navigate to the choices page +- action: click + window: win1 + target: + text: "about:Choices" +# Wait for it to load +- action: wait-loading + window: win1 +- action: block + conditions: + - window: win1 + status: complete +# And check we got the choices +- action: plot-check + window: win1 + checks: + - text-contains: "Automatically generated" + + +- action: window-close + window: win1 +- action: quit + |