Open tisaconundrum2 opened 4 years ago
document.querySelector('#tr_fg_fieldGroup_8 > td > table > tbody > tr:nth-child(2) > td > div > span.uir-field.inputreadonly').innerHTML.split('<br>')
The above gives us the name of the Bill To
email = document.querySelector('#qsTarget_1658836286').innerText
ip_address = document.querySelector('#tr_fg_fieldGroup_2 > td:nth-child(1) > table > tbody > tr:nth-child(5) > td > div > span.uir-field.inputreadonly').innerText
zipcode = document.querySelector('#tr_fg_fieldGroup_8 > td > table > tbody > tr:nth-child(2) > td > div > span.uir-field.inputreadonly').innerHTML.split('<br>')[2].replace(/^\s*/g,'').match(/\d+/)[0]
Name = document.querySelector('#tr_fg_fieldGroup_8 > td > table > tbody > tr:nth-child(2) > td > div > span.uir-field.inputreadonly').innerHTML.split('<br>')[0].replace(/^\s*/g,'')
Country = document.querySelector('#tr_fg_fieldGroup_8 > td > table > tbody > tr:nth-child(2) > td > div > span.uir-field.inputreadonly').innerHTML.split('<br>')[3]
State = document.querySelector('#tr_fg_fieldGroup_8 > td > table > tbody > tr:nth-child(2) > td > div > span.uir-field.inputreadonly').innerHTML.split('<br>')[2].match(/[A-Z]{2}/)[0]
document.querySelector("#main_form > table > tbody > tr:nth-child(1) > td > div.uir-page-title > div.uir-page-title-firstline > span").innerHTML += "<button type=\"button\">Verify with Emailage</button>"
Data will be collected automatically by using the explicit location of the Document Object
What it should look like