rspec - To click on all check box and match [Ruby Selenium-webdriver] -
when click on select checkbox right corner value shows "selected 4 " need write case match selected 4
how can that? using ruby selenium
driver.find_element(:name, "xbox").click element :selectedcount, :css, 'span[id=systems_removal_count]'
your question isn't clear looks you're using site_prism i'm assuming have sort of page object i'll name @home on selectedcount
element defined. mathew check text like
expect(@home.selectedcount).to have_text('selected 4')
or
expect(@home.selectedcount).to have_text('4')
depending on you're expecting in element
Comments
Post a Comment