mardi 1 septembre 2015

Can I test a dynamic html view using javascript in the chrome console?

Let's say I'm testing an angular app but it's way too time-consuming for me to learn the codebase and write code for it. I'm purely testing the view. Is it possible to use javascript in the chrome console to test the view?

Like if I want to test whether or not clicking on a button renders a view with a certain element with class 'class1', can I do this?

$(".class").click();
if ($(".class1") != null){console.log("class 1 is here!")};
history.back();

Is there any standardized way to do this?

Aucun commentaire:

Enregistrer un commentaire