@GeorgeL Let’s test this code and see if it returns something in debug mode?
k6 run --http-debug script.js
import http from 'k6/http';
import { sleep } from 'k6';
import { check } from 'k6';
export default function () {
let res = http.get('ABCD-Contact - VirtualRDN');
res = res.submitForm({
formSelector: '#wpcf7-f6761-p6762-o1',
fields: {
yourname: "Joe Blow",
yourphone: "7325551234",
youremail: "joe.blow@gmail.com",
},
submitSelector: 'submit',
});
check(res, {
'status is 200': (r) => r.status === 200,
});
sleep(3);
}
And try to change the field value formSelector: ‘form’
Can the formSelector field value change : ‘#wpcf7-f6761-p6762-o1’, on every new session or click?
Here are the guidelines for writing to a file