Add ability to query for CSS properties

Open
#581 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
testing-qa

Research direction

Start with Mink's Element API and review the proposed changes in Behat/Mink pull request 582 and MinkSelenium2Driver pull request 168. Check how the referenced CSS-property query maps onto the driver abstraction, then verify that the intended Element method and supported-driver behavior are covered.

Written by the indexing model from the issue text.

Description

feature

The selenium2 driver (and maybe SahiDriver/Selenium?) can support querying a computed CSS property (https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/css/:propertyName) so I propose that Mink's Element support a getComputedStyle($propertyName) or similar method.

https://github.com/Behat/Mink/pull/582

https://github.com/Behat/MinkSelenium2Driver/pull/168

Dominant language
PHP
Stars
1.6k
Forks
286
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from minkphp/Mink

All issues in minkphp/Mink

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.