qa-tools / behat-extension

Behat extension for integration with QA-Tools
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

FeatureContext steps to integrate with QA-Tools #6

Open aik099 opened 10 years ago

aik099 commented 10 years ago

I see following steps that might come in handy:

  1. I visit {PageClass} page - will:
    • create page object
    • assign created object to $this->page (of FeatureContext)
    • call $this->page->open()

Also we need to implement existing steps (from MinkContext) in a way, that they would access $this->page instead of using $this->session directly.

evangelion1204 commented 10 years ago

I planned to provide something like this, although it may not be possible to integrate every Mink specific step. We will have problems with steps accessing elements via selectors (id, name ...). Maybe we can support something like interacting of an property (which should be some sort of web element or typified one) by name/identifier of our pages.