diff --git a/js/lib/k6/html.js b/js/lib/k6/html.js
index <HASH>..<HASH> 100644
--- a/js/lib/k6/html.js
+++ b/js/lib/k6/html.js
@@ -62,6 +62,12 @@ export class Selection {
 	 * @return {string}
 	 */
 	text() { return this.impl.Text(); }
+
+	/**
+	 * Returns the value of the current selection
+	 * @return 
+	 */
+	attr(attrName) { return this.impl.Attr(attrName); }
 };
 
 export default {
Added attr() implementation

Implement attr() <URL> implementation is needed to implement the sample scripts.