diff --git a/src/interpreter.rs b/src/interpreter.rs
index 321cb44..297fd01 100644
--- a/src/interpreter.rs
+++ b/src/interpreter.rs
@@ -509,7 +509,7 @@ impl Interpreter {
};
self.get_curr_elem()
.await?
- .send_keys("" + key_to_press)
+ .send_keys("" + &key_to_press)
.await
.map_err(|_| {
self.error("Error pressing key. Make sure you have an element in focus first.")
diff --git a/test_scripts/reports/demo.html b/test_scripts/reports/demo.html
new file mode 100644
index 0000000..b092023
--- /dev/null
+++ b/test_scripts/reports/demo.html
@@ -0,0 +1,367 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: url "https://automationintesting.com/selenium/testpage/"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "First name" and type "Benjamin"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "Enter your surname" and type "Peinhardt"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "Gender" and select "Male"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "Which continents have you visited" and select "Asia"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "//*[@id='red']" and click
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "Tell me more!" and type "there's not much to tell"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "Email" and click
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: locate "SMS" and click
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Succeeded: screenshot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Statement Failed: locate "I don't exist" and click
+
Error: Could not locate the element
+
+
+
+
+
+
+
+
+
+
+
+