some implementations only support one value per javascript block. See #2386

This commit is contained in:
Simon Meers
2023-07-05 16:59:59 +10:00
parent 7b500ffeb5
commit 69f76fc7df
5 changed files with 10 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ contact_form:
Other: Other
- javascript:
- value: document.querySelector("#input_3_6").value = document.querySelector("#input_3_6").value.replace(/"/g, '');
- javascript:
- value: document.querySelector(".mysticky-welcomebar-fixed")?.remove()
- click_on:
- selector: "#label_3_7_1"

View File

@@ -100,6 +100,7 @@ contact_form:
"Women's Issues": WOM ISSUES
- javascript:
- value: document.querySelector("#input-AB67BC2F-4040-F985-52CD-007A86DA4D47").value = document.querySelector("#input-AB67BC2F-4040-F985-52CD-007A86DA4D47").value.replace(/1(\d{10})/, '$1')
- javascript:
- value: document.querySelector("#input-ADE64E73-4040-F985-52CD-A3AB6BCD2C51").value = document.querySelector("#input-ADE64E73-4040-F985-52CD-A3AB6BCD2C51").value.replace(/"/g, '');
- javascript:
- value: document.querySelector('[type="submit"].btn').click();

View File

@@ -6,8 +6,11 @@ contact_form:
- visit: "http://www.schumer.senate.gov/contact/email-chuck"
- javascript:
- value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });"
- javascript:
- value: document.querySelector('.MobileHeader')?.remove()
- javascript:
- value: document.querySelector('.SiteHeader')?.remove()
- javascript:
- value: document.querySelector('.SiteLayout__siteHeader')?.remove()
# - select:
# - name: actions

View File

@@ -8,8 +8,10 @@ contact_form:
- value: 1
- javascript:
- value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });"
- value: document.querySelector('.SiteHeader').remove()
- value: document.querySelector('.MobileHeader').remove()
- javascript:
- value: document.querySelector('.SiteHeader')?.remove()
- javascript:
- value: document.querySelector('.MobileHeader')?.remove()
- fill_in:
- name: input_3012F9F8-E1FF-15AC-780D-51E059038981
selector: "#input-3012F9F8-E1FF-15AC-780D-51E059038981"

View File

@@ -8,6 +8,7 @@ contact_form:
- value: 3
- javascript:
- value: "document.querySelector('.elementor-location-header')?.remove();"
- javascript:
- value: "document.querySelector('.elementor-location-footer')?.remove();"
- javascript:
- value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });"