Search code examples
rubywatir-webdriver

ruby irb stops outputting suddenly


I'm learning automation using Watir.

When I do in powershell using Interactive Ruby (irb), irb stops outputting after sometime. And it is not a line number issue.

irb(main):025:1> br.present?
irb(main):026:1> br.exists?
(Just a sample how it looks when irb stops responding and br is the browser instance here)

Kindly help.


Solution

  • The :1 in the command prompt means you're nested one level deep - you need to close off the block you're inside with a } or an end.