From 717b047a9fa33e257725f84acc43fcd54033c9bc Mon Sep 17 00:00:00 2001 From: Colm O'Connor Date: Sat, 9 Sep 2023 11:21:08 +0100 Subject: [PATCH] FEATURE : Very basic iframe functionality. --- hitch/engine.py | 2 +- hitch/story/iframe.story | 53 ++++++++++++++++++++++++++++++++++++++++ hitchpage/model.py | 18 ++++++++++++-- 3 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 hitch/story/iframe.story diff --git a/hitch/engine.py b/hitch/engine.py index 501cc74..f3d3f73 100644 --- a/hitch/engine.py +++ b/hitch/engine.py @@ -64,7 +64,7 @@ class Engine(BaseEngine): docs=InfoProperty(schema=Str()), ) - def __init__(self, paths, python_path, rewrite=False, cprofile=False, timeout=5.0): + def __init__(self, paths, python_path, rewrite=False, cprofile=False, timeout=30.0): self.path = paths self._rewrite = rewrite self._python_path = python_path diff --git a/hitch/story/iframe.story b/hitch/story/iframe.story new file mode 100644 index 0000000..e0e3711 --- /dev/null +++ b/hitch/story/iframe.story @@ -0,0 +1,53 @@ +Iframe: + docs: iframe + about: | + Look for an element inside an iframe. + + Then look for an element inside an iframe inside an iframe. + given: + files: + selectors.yml: | + iframe: + element: + iframe page title: "#id_iframe_title" + message iframe: + locator: "#message_iframe" + iframe content message: + in iframe: message iframe + locator: "#id_dashboard_message" + + html: + index.html: | +
+

This page contains an iframe

+