@ -3,6 +3,7 @@
{% from '_helpers.jinja' import render_field, render_checkbox_field, render_button %}
{% from '_helpers.jinja' import render_field, render_checkbox_field, render_button %}
{% from '_common_fields.jinja' import render_common_settings_form %}
{% from '_common_fields.jinja' import render_common_settings_form %}
< script src = "{{url_for('static_content', group='js', filename='tabs.js')}}" defer > < / script >
< script src = "{{url_for('static_content', group='js', filename='tabs.js')}}" defer > < / script >
< script src = "{{url_for('static_content', group='js', filename='vis.js')}}" defer > < / script >
< script >
< script >
const browser_steps_available_screenshots=JSON.parse('{{ watch.get_browsersteps_available_screenshots|tojson }}');
const browser_steps_available_screenshots=JSON.parse('{{ watch.get_browsersteps_available_screenshots|tojson }}');
const browser_steps_config=JSON.parse('{{ browser_steps_config|tojson }}');
const browser_steps_config=JSON.parse('{{ browser_steps_config|tojson }}');
@ -19,7 +20,7 @@
const proxy_recheck_status_url="{{url_for('check_proxies.get_recheck_status', uuid=uuid)}}";
const proxy_recheck_status_url="{{url_for('check_proxies.get_recheck_status', uuid=uuid)}}";
const screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid)}}";
const screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid)}}";
const watch_visual_selector_data_url="{{url_for('static_content', group='visual_selector_data', filename=uuid)}}";
const watch_visual_selector_data_url="{{url_for('static_content', group='visual_selector_data', filename=uuid)}}";
const default_system_fetch_backend="{{ settings_application['fetch_backend'] }}";
< / script >
< / script >
< script src = "{{url_for('static_content', group='js', filename='watch-settings.js')}}" defer > < / script >
< script src = "{{url_for('static_content', group='js', filename='watch-settings.js')}}" defer > < / script >
@ -124,10 +125,8 @@
< / span >
< / span >
< / div >
< / div >
{% endif %}
{% endif %}
< div class = "pure-control-group inline-radio" >
{{ render_checkbox_field(form.ignore_status_codes) }}
< fieldset id = "webdriver-override-options" data-visible-for = "fetch_backend=html_webdriver" >
< / div >
< fieldset id = "webdriver-override-options" >
< div class = "pure-control-group" >
< div class = "pure-control-group" >
{{ render_field(form.webdriver_delay) }}
{{ render_field(form.webdriver_delay) }}
< div class = "pure-form-message-inline" >
< div class = "pure-form-message-inline" >
@ -148,14 +147,14 @@
< / fieldset >
< / fieldset >
< fieldset class = "pure-group" id = "requests-override-options" >
< fieldset class = "pure-group" id = "requests-override-options" >
{% if not playwright_enabled %}
{% if not playwright_enabled %}
< div class = "pure-form-message-inline" >
< div class = "pure-form-message-inline" data-visible-for = "fetch_backend=html_requests" >
< strong > Request override is currently only used by the < i > Basic fast Plaintext/HTTP Client< / i > method.< / strong >
< strong > Request override is currently only used by the < i > Basic fast Plaintext/HTTP Client< / i > method.< / strong >
< / div >
< / div >
{% endif %}
{% endif %}
< div class = "pure-control-group" id = "request-method" >
< div class = "pure-control-group" id = "request-method" data-visible-for = "fetch_backend=html_requests" >
{{ render_field(form.method) }}
{{ render_field(form.method) }}
< / div >
< / div >
< div class = "pure-control-group" id = "request-headers" >
< div class = "pure-control-group" id = "request-headers" data-visible-for = "fetch_backend=html_requests fetch_backend=html_webdriver" >
{{ render_field(form.headers, rows=5, placeholder="Example
{{ render_field(form.headers, rows=5, placeholder="Example
Cookie: foobar
Cookie: foobar
User-Agent: wonderbra 1.0") }}
User-Agent: wonderbra 1.0") }}
@ -171,7 +170,7 @@ User-Agent: wonderbra 1.0") }}
< / div >
< / div >
< / div >
< / div >
< div class = "pure-control-group" id = "request-body" >
< div class = "pure-control-group" id = "request-body" data-visible-for = "fetch_backend=html_requests" >
{{ render_field(form.body, rows=5, placeholder="Example
{{ render_field(form.body, rows=5, placeholder="Example
{
{
\"name\":\"John\",
\"name\":\"John\",
@ -180,6 +179,9 @@ User-Agent: wonderbra 1.0") }}
}") }}
}") }}
< / div >
< / div >
< / fieldset >
< / fieldset >
< div class = "pure-control-group inline-radio" >
{{ render_checkbox_field(form.ignore_status_codes) }}
< / div >
< / div >
< / div >
{% if playwright_enabled %}
{% if playwright_enabled %}
< div class = "tab-pane-inner" id = "browser-steps" >
< div class = "tab-pane-inner" id = "browser-steps" >