rspec/capybara: How to check if cell phone dials a right number (for example after clicking a "tel:" link) -


i have phone number link on mobile version of site:

<a href="tel:+79162003040">+7 916 200-30-40</a> 

and want write rspec feature check if browser dials number after clicking link? i'm pretty sure simple link right this:

page.should have_selector 'a', href: 'tel:+79162003040' 

but want call javascript function track phone dialing first.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -