Use it for testing razorpay payment link while developing Webhook as entering account and card details every time you do success and failure test is boring.
Make sure you have Selenium Webdriver Installed before proceeding. https://github.com/SeleniumHQ/selenium/tree/master/rb
Replace the following link in the above code to your test Razorpay payment page
driver.get 'https://link_to_razorpay_webpage'
and run
ruby selenium_razorpay_webhook.rb