Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hitchdev/page-config-model
Browse files Browse the repository at this point in the history
  • Loading branch information
crdoconnor committed Sep 20, 2023
2 parents 5a26b0b + 32d6f97 commit f56290e
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 6 deletions.
29 changes: 27 additions & 2 deletions docs/public/using/iframe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Iframe
---
# Iframe




Expand All @@ -9,7 +11,7 @@ Look for an element inside an iframe.
Then look for an element inside an iframe inside an iframe.


# Code Example
## Code Example


With code:
Expand Down Expand Up @@ -54,10 +56,33 @@ iframe:

With HTML:


index.html:

```html
{'index.html': '<div class="form-login">\n <h4 id="id_iframe_title">This page contains an iframe</h4>\n <iframe id="message_iframe" src="iframe_content.html" />\n</div>\n', 'iframe_content.html': '<p id="id_dashboard_message">hello!</a>\n<iframe id="child_iframe" src="iframe_in_iframe_content.html" />\n', 'iframe_in_iframe_content.html': '<p id="id_iframe_in_iframe">message</a>\n'}
<div class="form-login">
<h4 id="id_iframe_title">This page contains an iframe</h4>
<iframe id="message_iframe" src="iframe_content.html" />
</div>

```

iframe_content.html:

```html
<p id="id_dashboard_message">hello!</a>
<iframe id="child_iframe" src="iframe_in_iframe_content.html" />

```

iframe_in_iframe_content.html:

```html
<p id="id_iframe_in_iframe">message</a>

```





Expand Down
29 changes: 27 additions & 2 deletions docs/public/using/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
title: Quickstart
---
# Quickstart




Simple scenario with a log in page and a dashboard
with some locator selectors and one text selector.


# Code Example
## Code Example


With code:
Expand Down Expand Up @@ -50,15 +52,38 @@ dashboard:

With HTML:


index.html:

```html
<div class="form-login">
<input type="text" id="id_username" placeholder="username" /></br>
<input type="text" id="id_password" placeholder="password" /></br>
<div class="wrapper">
<span class="group-btn">
<a id="id_ok_button" href="/dashboard.html" class="btn btn-primary btn-md">login <i class="fa fa-sign-in"></i></a>
</span>
</div>
</div>

```

dashboard.html:

```html
{'index.html': '<div class="form-login">\n<input type="text" id="id_username" placeholder="username" /></br>\n<input type="text" id="id_password" placeholder="password" /></br>\n<div class="wrapper">\n<span class="group-btn"> \n<a id="id_ok_button" href="/dashboard.html" class="btn btn-primary btn-md">login <i class="fa fa-sign-in"></i></a>\n</span>\n</div>\n</div>\n', 'dashboard.html': '<div class="form-login">\n <h4 id="id_this_is_a_dashboard_element">Dashboard</h4>\n <p id="id_dashboard_message">hello!</a>\n</div>\n'}
<div class="form-login">
<h4 id="id_this_is_a_dashboard_element">Dashboard</h4>
<p id="id_dashboard_message">hello!</a>
</div>

```







```python
conf.next_page("login")
print("login page")
Expand Down
29 changes: 27 additions & 2 deletions docs/public/using/reload.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Reload
---
# Reload




Expand All @@ -10,7 +12,7 @@ This is useful for debugging and writing in new selectors
mid test run.


# Code Example
## Code Example


With code:
Expand Down Expand Up @@ -61,15 +63,38 @@ dashboard:

With HTML:


index.html:

```html
<div class="form-login">
<input type="text" id="id_username" placeholder="username" /></br>
<input type="text" id="id_password" placeholder="password" /></br>
<div class="wrapper">
<span class="group-btn">
<a id="id_ok_button" href="/dashboard.html" class="btn btn-primary btn-md">login <i class="fa fa-sign-in"></i></a>
</span>
</div>
</div>

```

dashboard.html:

```html
{'index.html': '<div class="form-login">\n<input type="text" id="id_username" placeholder="username" /></br>\n<input type="text" id="id_password" placeholder="password" /></br>\n<div class="wrapper">\n<span class="group-btn"> \n<a id="id_ok_button" href="/dashboard.html" class="btn btn-primary btn-md">login <i class="fa fa-sign-in"></i></a>\n</span>\n</div>\n</div>\n', 'dashboard.html': '<div class="form-login">\n <h4 id="id_this_is_a_dashboard_element">Dashboard</h4>\n <p id="id_dashboard_message">hello!</a>\n</div>\n'}
<div class="form-login">
<h4 id="id_this_is_a_dashboard_element">Dashboard</h4>
<p id="id_dashboard_message">hello!</a>
</div>

```







```python
conf.next_page("login")
print("login page")
Expand Down

0 comments on commit f56290e

Please sign in to comment.