I have the following feature file for this page:
@checkbox
Feature: Check the checkbox
Webdriver should be able to check the checkbox lists
Scenario: Check the checkbox
Given I am in checkbox task page
Then I can check the hobbies from the checkbox
Scenario Outline: Title of your scenario outline
Given I am in "http://suvian.in/selenium/1.6checkbox.html"
Then I can check the <id> from the checkbox
Examples:
| id |
| 1 |
| 2 |
| 3 |
| 4 |
The problem is, I have involved thecnical details like id in my scenario outline. I would like to change it as
Examples:
| hobby |
| dancing |
| sporting |
| singing |
| PC Gaming |
But i don't know, how to address the element:
<input style="width:20px;height:20px;" type="checkbox" id="2">
in my selenium webdriver?