Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Browser / BrowserFileTrait.php
diff --git a/vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFileTrait.php b/vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFileTrait.php
new file mode 100644 (file)
index 0000000..51fc745
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Zumba\GastonJS\Browser;
+
+/**
+ * Trait BrowserFileTrait
+ * @package Zumba\GastonJS\Browser
+ */
+trait BrowserFileTrait {
+  /**
+   * Selects a file to send to the browser to a given page
+   * @param $pageId
+   * @param $elementId
+   * @param $value
+   * @return mixed
+   */
+  public function selectFile($pageId, $elementId, $value) {
+    return $this->command('select_file', $pageId, $elementId, $value);
+  }
+}