Automation Testing Using Javascript Variables