-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
| "require": { | |
| "laravel/framework": "4.2.*", | |
| "twbs/bootstrap-sass": "3.2.*" // line to add Twitter Bootstrap Sass | |
| }, |
| php artisan asset:publish --path="vendor\twbs\bootstrap-sass\assets" . |
| vagrant@homestead:~/$ /etc/init.d/memcached status | |
| * memcached is not running | |
| vagrant@homestead:~/$ sudo /etc/init.d/memcached start | |
| * Starting memcached: memcached. |
| <?php | |
| namespace App\Traits; | |
| use Illuminate\Support\Str; | |
| trait HasFilters | |
| { | |
| public function scopeFilter($query, $filters = []) | |
| { |
| Seven different types of CSS attribute selectors | |
| // This attribute exists on the element | |
| [value] | |
| // This attribute has a specific value of cool | |
| [value='cool'] | |
| // This attribute value contains the word cool somewhere in it | |
| [value*='cool'] |