How can I find a checkbox in NodeJS with JQuery? I've tried the basic ways that I've found, but none seem to work. I've attached the code I'm using to run the command:
require("jsdom").env("http://ift.tt/2kPQwqS", function (err, window) {
if (err) {
console.error(err);
return;
}
var $ = require("jquery")(window);
$(window).ready(function () {
if ($(":checkbox[value='IVC Library - Room 100E 8:00am - 8:30am Friday, February 10, 2017']").length > 0)
console.log("Checkbox exists.");
});
});
In this case, the value of the checkbox is from here: http://ift.tt/2kPQwqS. The checkbox is nested within a form.
Aucun commentaire:
Enregistrer un commentaire