X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fjcalderonzumba%2Fmink-phantomjs-driver%2Fsrc%2FNavigationTrait.php;fp=vendor%2Fjcalderonzumba%2Fmink-phantomjs-driver%2Fsrc%2FNavigationTrait.php;h=88ca4293454e45a5263c466c2aae1013f18adfaf;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/jcalderonzumba/mink-phantomjs-driver/src/NavigationTrait.php b/vendor/jcalderonzumba/mink-phantomjs-driver/src/NavigationTrait.php new file mode 100644 index 000000000..88ca42934 --- /dev/null +++ b/vendor/jcalderonzumba/mink-phantomjs-driver/src/NavigationTrait.php @@ -0,0 +1,49 @@ +browser->visit($url); + } + + /** + * Gets the current url if any + * @return string + */ + public function getCurrentUrl() { + return $this->browser->currentUrl(); + } + + + /** + * Reloads the page if possible + */ + public function reload() { + $this->browser->reload(); + } + + /** + * Goes forward if possible + */ + public function forward() { + $this->browser->goForward(); + } + + /** + * Goes back if possible + */ + public function back() { + $this->browser->goBack(); + } + + +}