WatirMelon

A 93% Watir Based Blog by Alister Scott

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About
  • Context Driven Testing

Tag Archives: css styles

Reading CSS properties using Watir-WebDriver

Posted on January 28, 2012
Reply

There was recently a question on Stack Overflow about how you read a CSS property of an element that is defined in a stylesheet using Watir-WebDriver.

It’s really quite simple:

require 'watir-webdriver'
b = Watir::Browser.start 'minesweeper.github.com'
puts b.div(:id => 'g1minesRemaining100s').style 'background-image'

Posted in Watir-WebDriver | Tagged css, css properties, css styles | Leave a reply
Test Automation Bazaar in AustinMarch 23rd, 2012
29 days to go.

About

alister_scott

A 93% Watir based blog written by Alister Scott.

View Alister Scott's profile on LinkedIn

Everything you see here is licensed under a Creative Commons Attribution 2.5 Australia License.

Creative Commons

Quote

"Share your knowledge. It’s a way to achieve immortality."

~ The Dalai Lama

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 70 other followers

Recent Posts

  • Visualising software quality: using ink
  • ♥ Travis CI
  • CukeSalad: not so yummy yummy
  • Turnip: trying to solve Cucumber’s problems with ruby BDD
  • Introducing the software testing ice-cream cone
  • Reading CSS properties using Watir-WebDriver
  • Writing a CoffeeScript web application using TDD
  • Have you always wanted to automate minesweeper?
  • A tale of three ruby automated testing APIs (redux)
  • Cukepatch: rich editing of feature files on Github
  • WatirMelon Spinach
  • Watir-WebDriver tests on Firefox 7: getting rid of the send data to Mozilla message
  • C#: Avoiding the WebDriverException: No response from server for url
  • Watir-Page-Helper 0.3.0: now with added frames
  • Visible content locators and i18n in automated tests

Categories

  • Agile (6)
  • ATDD (21)
  • Automated Testing (54)
  • AWTA (3)
  • Brisbane (7)
  • Business Driven (9)
  • Career (10)
  • community (9)
  • Conferences (8)
  • Continuous Delivery (3)
  • Continuous Integration (5)
  • Cucumber (29)
  • Design (1)
  • Exploratory Testing (1)
  • FireWatir (7)
  • Internet (20)
  • Monitoring (2)
  • Other (2)
  • Performance Testing (2)
  • Presentations (5)
  • quotes (3)
  • Random (3)
  • Roo (4)
  • ruby (13)
  • SAFS (1)
  • Selenium (13)
  • Session Based Testing (1)
  • Soap Opera Testing (1)
  • Software (16)
  • Software Testing (26)
  • SpecDriver (2)
  • Specification by Example (4)
  • Test Automation (36)
  • Thoughtworks (7)
  • Ubuntu (4)
  • Uncategorized (2)
  • Usability (16)
  • Watir (56)
  • Watir-WebDriver (38)
  • WebDriver (9)
  • Wiki (4)
  • Wordpress (3)

Links

Below is a categorised collection of links that I have found useful.

Australian Testers

  • Bruce McLeod
  • Craig Smith
  • Dean Cornish
  • Eric Petersen
  • Jared Quinert
  • Joel Deutscher
  • Kristan Vingrys
  • Marlena Compton
  • Nathaniel Ritmeyer
  • Ranjeet Pethe
  • Tim Koopmans
  • Trish Khoo

Cucumber

  • (My) Cucumber Best Practices and Tips
  • 15 Expert Tips for Using Cucumber by Dave Astels
  • Collection of Cucumber Tutorials and Blog Posts
  • Ruby Acceptance Testing: James Mead
  • You're almost cuking it: Antony Marcano

Software Engineering

  • 5S on Wikipedia
  • Lean Software Development

Software Testing

  • Context Driven Testing School

Watir

  • Watir Google Group
  • Watir Home Page
  • Watir LinkedIn Group
  • Watir on Wikipedia

Wiki

  • Confluence Remote API Specification
  • Confluence4r

Wordpress

  • How to post source code on wordpress
  • How to set up a static page at the front of a wordpress.com blog

Creative Commons

Everything you see here is licensed under a Creative Commons Attribution 2.5 Australia License. You can click the logo below for further details.
Creative Commons Logo

Theme: Twenty Eleven | Blog at WordPress.com.
Follow

Get every new post delivered to your Inbox.

Join 70 other followers

Powered by WordPress.com