From aae7a27567bbc475d1f7eec3e4d3c836d9929ab7 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Tue, 7 Apr 2020 12:31:26 +0200 Subject: [PATCH 1/2] Fix indentation --- theserenitybook/latest/page-objects.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theserenitybook/latest/page-objects.html b/theserenitybook/latest/page-objects.html index aeac1390..a409b8d7 100644 --- a/theserenitybook/latest/page-objects.html +++ b/theserenitybook/latest/page-objects.html @@ -954,7 +954,7 @@

<
-
	evaluateJavascript("document.getElementById('firstname').focus()");
+
evaluateJavascript("document.getElementById('firstname').focus()");
-
	evaluateJavascript("$('#firstname').focus()");
+
evaluateJavascript("$('#firstname').focus()");
-

And, if you are familiar with JQuery, you can also invoke JQuery expressions:

+

And, if you are familiar with JQuery, you can also invoke JQuery expressions, as Serenity will automatically inject a bundled version of JQuery into each page, unless the page already includes it: