mardi 25 août 2015

Unable to read checkbox value in cucumber

I am new to automation (Cucumber), and has very less idea of coding. I am looking for the script through which I can click on checkbox or radiobutton. Below is the HTML code I am looking at:

<"input class="facetoption" type="checkbox" value="facets.price_range%5B%5D=Rs.+2000+and+Below" autocomplete="off">

And below is the step definition which I tried

Step definition:

Then(/^Select the first Price Range Option$/) do
  @browser.checkbox(:value => 'facets.price_range5B%5D=Rs.+2000+and+Below').click
end

Please help.

Thanks.




Aucun commentaire:

Enregistrer un commentaire