Skip to main content

Posts

Showing posts from 2015

Making 'Wikipedia' example for Behat to work - autocomplete ugly workaround

In documentation you can see there is a scenario with autocomplete http://docs.behat.org/en/v2.5/cookbook/behat_and_mink.html But this scenario won't work because of this line: When I fill in " search " with " Behavior Driv " The line only sets value of the input to " Behavior Driv " but autocomplete feature won't be triggered. To fix this we introduce new keyword: When I type "Behavior Driv" into search box Adding implementation to FeatureContext :      /**      * @Then I type :text into search box      */     public function iTypeTextIntoSearchBox($text)     {         $element = $this->getSession()->getPage()->findById('searchInput');         $script = "$('#searchInput').keypress();";         $element->setValue($text);         $this->getSession()->evaluateScript($script);     } Here after setting value to our text we execute jQuery's ' keypress ' event as a

Choose the best laptop/notebook

Web site allows to sort entered laptop by CPU, GPU ratings and price. CPU ratings are taken from www.notebookcheck.net/Mobile-Processors-Benchmarklist.2436.0.html GPU ratings are taken from www.notebookcheck.net/Mobile-Graphics-Cards-Benchmark-List.844.0.html?multiplegpus=1 http://choose-best-laptop.herokuapp.com / http://choose-best-laptop.herokuapp.com/laptops/index?q=c7b506277f03f6c78a89892814a2c8a0 Short video demo:

Choose the best phone

Easy web app for choosing the best phone. Web app allows to sort entered phones by their points. Points and phone data are taken from versus.com web site. http://choose-best-phone.herokuapp.com/ http://choose-best-phone.herokuapp.com/phones... Short video demo: