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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -