watir / watir.github.io Goto Github PK
View Code? Open in Web Editor NEWCode for our Website
Home Page: http://watir.github.io/
License: MIT License
Code for our Website
Home Page: http://watir.github.io/
License: MIT License
Navigating from http://watir.com/updated-documentation/ to http://watir.com/updated-documentation/working-with-elements via the "Working with Elements" text is returning a 404
This site does not have mobile css, and does not look good on a phone.
We should have more articles on the site giving real examples of all the ways that elements can be located.
In _guides/drivers.md
, Edge Driver is linked to Gecko Driver...
Download the last good archive of watirpodcast.com with Wayback Machine Downloader and host it as a separate page/folder on this site.
There are two ways of doing this:
As result, we'll remove the archives that are currently with different yearly files.
I think we get rid of this page:
http://watir.github.io/docs/browser-downloads/
In favor of
http://watir.github.io/docs/chrome/
and
http://watir.github.io/docs/firefox/
We probably also need to update information for
Geckodriver
Apple's SafariDriver in MacOS/Sierra
and Microsoft's Edge driver
There are a number of Watir related books out there. Would be nice to have book reviews and recommendations on our website as well. Just an idea.
Most of the topics from the old websites should be updated and ported to the new website. Historical blog posts should be ported over. Comments on posts don't need to be ported, although it would certainly be nice to have them.
In master/_docs/chrome.md this link is a 404
See the full list of switches [here](http://src.chromium.org/svn/trunk/src/chrome/common/pref_names.cc)
working link seems to be
https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc
OS: Win 7 Enterprise 64bit
IE 11.0.9600.18617
ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
watir 6.2.0
IEDriverServer 3.3.0 32bit
browser.alert.exists?
would dismiss the alert rather than not. It does return true for the first call though. Any attempt to handle alert will close it. This means ok or confirm cannot be clicked.
On this page http://watir.com/guides/headless/ the link purporting to be "Headless on Chrome" references http://watir.com/guides/firefox/#headless
On the same page, the link purporting to be "Headless on Firefox" has the same href, but there is no anchor on that page #headless. Headless is not mentioned at all.
I added myself. Who else? @abaird?
I'll reach out to orde who is very active on Stack Overflow.
This page is out of date:
http://watir.github.io/docs/mobile/
Moving this issue over here: watir/watir#278
Need explanation and examples of how to use Watir with Remote servers
Can also discuss sauce labs integration, etc.
It seems like Disqus is the right tool for comments these days and there are tutorials out there for how to integrate with Jekyll. Ideally we would port over the old comments from the wordpress sites to attach to the blog posts that re ported over.
Do we want to pull wiki information onto the website & just have them link to the website??
https://github.com/watir/watir_meta/wiki
https://github.com/watir/watir/wiki
Also need to update this link: http://watir.github.com/watir/doc
i.e watir-webdriver
Update this one: https://github.com/watir/watir_meta/wiki/Cheat-Sheet
The Stack Overflow Teams project has ended. As a result, clicking the link in the footer goes to a general "Teams has un-shipped" page.
We should remove the link in the footer.
Someone just asked in Slack what gem they should be using because they have 4 currently installed (watir-webdriver, watir, watircommon & watir-classic).
I think a link on the main page of what the current recommended gem to use would be good. We can keep that updated when we do new releases.
Especially before we release 6.0 it is a little confusing still.
http://watir.com/guides/elements/
Something got hosed on the community page when it renders on the actual github site. I'm seeing HTML code in various places and links in spans aren't rendering.
This is a great starting point:
https://github.com/watir/watir_meta/wiki/Finding-Page-Elements#regular-expressions
Want to add in Rubular
also maybe include specific examples of common patterns
Where do we want to document 3rd Party gems? On the website or in github readme?
I noticed there are a bunch here that should be put somewhere else one way or another.
Don't see this content on our new site, yet: https://watir.com/book/
A big stumbling block for new users is figuring out how to look at the DOM in the first place
We should update this with some more specifics, maybe some screenshots
https://github.com/watir/watir_meta/wiki/Browser-Development-Toolbar
We want to have a way of tracking which pages are getting the most traffic. This is needed for parity with wordpress.com.
Here is one tutorial on how to do this: http://joshualande.com/jekyll-github-pages-poole/
This all worked locally when I tested it, but now that it's "live", the /docs/ pages do not pull up.
We already have Watir and Watir-Webdriver that we are looking to merge into this site. Much of that information is outdated, but not all of it.
Things we should consider adding to the site:
Leverage
RSpec: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-RSpec
Minitest: https://github.com/watir/watir_meta/wiki/Test-Framework-Example-with-MiniTest
and write example for Cucumber
Article could be posted as either a page or a blogpost.
Depending on how we redirect the old sites, we might want a more custom 404 page explaining that old sites went away and that the links are stale.
We have improved error messaging and have access to Logger functionality we can leverage to make this more useful
https://github.com/watir/watir_meta/wiki/Troubleshooting-Watir-Code
I am trying to run my script in Edge browser using watir and selenium grid 2.53.1 . On running the grid console shows that the edge browser has got allocated, but it doesnt run any of the test.
It throws the below error
"["[remote server] sun.reflect.NativeConstructorAccessorImpl():-2:in newInstance0'\", \"[remote server] sun.reflect.NativeConstructorAccessorImpl():-1:in
newInstance'", "[remote server] sun.reflect.DelegatingConstructorAccessorImpl():-1:in newInstance'\", \"[remote server] java.lang.reflect.Constructor():-1:in
newInstance'", "[remote server] org.openqa.selenium.remote.ErrorHandler(ErrorHandler.java):206:in createThrowable'\", \"[remote server] org.openqa.selenium.remote.ErrorHandler(ErrorHandler.java):158:in
throwIfResponseFailed'", "[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):678:in execute'\", \"[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):249:in
startSession'", "[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):131:in <init>'\", \"[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):144:in
'", "[remote server] org.openqa.selenium.edge.EdgeDriver(EdgeDriver.java):152:in <init>'\", \"[remote server] org.openqa.selenium.edge.EdgeDriver(EdgeDriver.java):120:in
'", "[remote server] sun.reflect.NativeConstructorAccessorImpl():-2:in newInstance0'\", \"[remote server] sun.reflect.NativeConstructorAccessorImpl():-1:in
newInstance'", "[remote server] sun.reflect.DelegatingConstructorAccessorImpl():-1:in newInstance'\", \"[remote server] java.lang.reflect.Constructor():-1:in
newInstance'", "[remote server] org.openqa.selenium.remote.server.DefaultDriverProvider(DefaultDriverProvider.java):103:in callConstructor'\", \"[remote server] org.openqa.selenium.remote.server.DefaultDriverProvider(DefaultDriverProvider.java):97:in
newInstance'", "[remote server] org.openqa.selenium.remote.server.DefaultDriverFactory(DefaultDriverFactory.java):60:in newInstance'\", \"[remote server] org.openqa.selenium.remote.server.DefaultSession$BrowserCreator(DefaultSession.java):222:in
call'", "[remote server] org.openqa.selenium.remote.server.DefaultSession$BrowserCreator(DefaultSession.java):1:in call'\", \"[remote server] java.util.concurrent.FutureTask():-1:in
run'", "[remote server] org.openqa.selenium.remote.server.DefaultSession$1(DefaultSession.java):176:in run'\", \"[remote server] java.util.concurrent.ThreadPoolExecutor():-1:in
runWorker'", "[remote server] java.util.concurrent.ThreadPoolExecutor$Worker():-1:in run'\", \"[remote server] java.lang.Thread():-1:in
run'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/response.rb:70:in assert_ok'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/response.rb:34:in
initialize'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/http/common.rb:78:in new'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/http/common.rb:78:in
create_response'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/http/default.rb:90:in request'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/http/common.rb:59:in
call'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/bridge.rb:649:in raw_execute'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/bridge.rb:123:in
create_session'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/remote/bridge.rb:87:in initialize'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/common/driver.rb:59:in
new'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver/common/driver.rb:59:in for'\", \"C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-2.53.1/lib/selenium/webdriver.rb:84:in
for'", "C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-webdriver-0.9.3/lib/watir-webdriver/browser.rb:46:in initialize'\", \"C:/Users/xyz/codes/ruby/lib/ci_utilities.rb:246:in
new'", "C:/Users/xyz/codes/ruby/lib/ci_utilities.rb:246:in block in assign_browser'\", \"C:/Users/xyz/codes/ruby/lib/ci_utilities.rb:243:in
each'", "C:/Users/xyz/codes/ruby/lib/ci_utilities.rb:243:in assign_browser'\", \"C:/Users/xyz/codes/ruby/vdeck/registration/hosting_registration.rb:90:in
Currently I haven't mentioned any browser capabilities.
if opts['browser_selection'] =~ /edge/i
p 'edge'
browser_capabilities[:browserName] = 'MicrosoftEdge'
end
browser = Watir::Browser.new(:remote,
:url => "http://#{hub}:4444/wd/hub",
:desired_capabilities => browser_capabilities )`
Selenium hub and node are configured as below
REM Settings as a hub
start java -jar selenium-server-standalone-2.53.1.jar -role hub -port 4444 -DPOOL_MAX=512
REM Setting as a node
start java -Dwebdriver.chrome.driver=C:\seleniumgrid\chromedriver.exe -Dwebdriver.edge.driver=C:\seleniumgrid\MicrosoftWebDriver.exe -Dwebdriver.ie.driver=C:\seleniumgrid\IEDriverServer.exe -jar selenium-server-standalone-2.53.1.jar -role node -port 5556 -hub http://localhost:4444/grid/register -browser browserName=MicrosoftEdge,platform=WINDOWS,maxInstances=2 -browserTimeout 500 -browser browserName="internet explorer",version=11,maxInstances=2,platform=WINDOWS -browser browserName=chrome,maxInstances=2,platform=WINDOWS -browser browserName=firefox,maxInstances=2,platform=WINDOWS -log C:\seleniumgrid\node1.log
`
Are there any specific capabilties which needs to be mentioned while running Edge browser with watir?
Theoretically (I'm not sure how implementing these will work) there are two options for url redirection
http://watir.com/x/y/z.html
to http://watir.github.io/x/y/z.html
so almost all of the links to watir.com will hit a 404 page on watir.github.io. Which is why #44<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
Only the watir site has blog posts.
I opended the Ruby Command Line and copy and pasted this : gem install watir
This is the error i got.
ERROR: Could not find a valid gem 'watir' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz)
Capabilities code is still a mess in Watir.
I'd like for us to have a way to show off in the guides what things people are doing.
Similar to: watir/watir#694 (comment)
It's only seen on this repo, not the actual site, but it should get changed away from the Jekyll Now default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.