Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var appointment_form;
- var timeout_counter = 0;
- var sec_for_wait = 5
- // Step 1:
- var ms = sec_for_wait * 1000;
- timeout_counter += ms;
- setTimeout
- (
- function()
- {
- // click first list
- appointment_form = document.getElementById("appointment_form");
- appointment_form.getElementsByClassName("select-input")[0].click();
- // select item from list
- setTimeout
- (
- function()
- {
- var ul_list = appointment_form.getElementsByClassName("select-holder")[0];
- var li_rows = ul_list.getElementsByClassName("select-item");
- li_rows[22].click();
- },
- ms
- );
- },
- timeout_counter
- );
- // Step 2:
- timeout_counter += ms * 2;
- setTimeout
- (
- function()
- {
- // click second list
- appointment_form.getElementsByClassName("select-input")[1].click();
- // select item from list
- setTimeout
- (
- function()
- {
- var ul_list = appointment_form.getElementsByClassName("select-holder")[1];
- var li_rows = ul_list.getElementsByClassName("select-item");
- li_rows[1].click();
- },
- ms
- );
- },
- timeout_counter
- );
- // Step 3:
- timeout_counter += ms * 2;
- setTimeout
- (
- function()
- {
- // click third list
- appointment_form.getElementsByClassName("select-input")[2].click();
- // select item from list
- setTimeout
- (
- function()
- {
- var ul_list = appointment_form.getElementsByClassName("select-holder")[2];
- var li_rows = ul_list.getElementsByClassName("select-item");
- li_rows[7].click();
- },
- ms
- );
- },
- timeout_counter
- );
- // Step 3:
- timeout_counter += ms * 2;
- setTimeout
- (
- function()
- {
- // click third list
- appointment_form.getElementsByClassName("select-input")[3].click();
- // select item from list
- setTimeout
- (
- function()
- {
- var ul_list = appointment_form.getElementsByClassName("select-holder")[3];
- var li_rows = ul_list.getElementsByClassName("select-item");
- li_rows[1].click();
- },
- ms
- );
- },
- timeout_counter
- );
- // Step 5:
- timeout_counter += ms * 2;
- setTimeout
- (
- function()
- {
- setTimeout
- (
- function()
- {
- var step4 = document.getElementById("step-4");
- step4.getElementsByClassName("radio")[0].click();
- },
- ms
- );
- },
- timeout_counter
- );
Advertisement
Add Comment
Please, Sign In to add comment