TODO: short summary
- start Chrome with user profile
- start Chrome with extensions disabled
- start Chrome with "ChromeOptions()"
- TODO: add more examples!!!
| To build the extension, update the username/password and zip `background.js` and `manifest.json` in a single archive. | |
| # Starting with a generic "Open Browser to Page" keyword, following that are examples for: | |
| # Google Chrome | |
| # PhantomJS | |
| # | |
| # Assumed global or suite variables: | |
| # ${browser} - the browser you want to use in testing | |
| # ${delay} - the "speed" that Selenium verbs execute at | |
| # ${user_agent} - User Agent string like: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 | |
| # | |
| # Note: The documentation is written with the libdoc utility in mind. See: |
| #!/usr/bin/python | |
| from selenium import webdriver | |
| from PIL import Image | |
| from cStringIO import StringIO | |
| verbose = 1 | |
| browser = webdriver.Firefox() | |
| browser.get('http://stackoverflow.com/questions/37906704/taking-a-whole-page-screenshot-with-selenium-marionette-in-python') |
TODO: short summary
NOTE
You may not need local branches for all pull requests in a repo.
To fetch only the ref of a single pull request that you need, use this:
git fetch origin pull/7324/head:pr-7324
git checkout pr-7324
# ...| #!/usr/bin/python | |
| import datetime | |
| import sys | |
| print datetime.datetime.fromtimestamp(float(sys.argv[1])/1000).strftime('%Y-%m-%d %H:%M:%S.%f') |
| Add-Type -AssemblyName System.Windows.Forms | |
| while ($true) | |
| { | |
| $Pos = [System.Windows.Forms.Cursor]::Position | |
| $x = ($pos.X % 500) + 1 | |
| $y = ($pos.Y % 500) + 1 | |
| [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
| Start-Sleep -Seconds 10 | |
| } |
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
| <% | |
| import java.text.DateFormat | |
| import java.text.SimpleDateFormat | |
| %> | |
| <STYLE> | |
| BODY, TABLE, TD, TH, P { | |
| font-family:Verdana,Helvetica,sans serif; | |
| font-size:11px; | |
| color:black; | |
| } |