ruby - Silencing Chrome driver console outputs when I run my tests -


I am using the latest version of Chrome (32.0.1700.107) and chrome driver (v 2.8). But when I run my sample test in Ruby with the following code:

  'Selenium-WebDriver' is required 'WAIT = Selenium :: WebDriver :: Wait.New (timeout: 100) $ Driver = Selenium:: WebDriver.for: Chrome $ driver.manage.window.maximize $ driver.navigate.to 'https://www.google.co.in' def apachets_over ele_hover = $ driver.find_element (: xpath, "." [@ Id = 'gbiva'] / div [1] / a ") $ driver.action.move_to (ele_hover). Perform Sleep 5 puts" pass "end apps_hover $ driver.quit ()  

Let me down at the beginning of the console output from the chrome driver Received as written:

[5032: 4816: 0218/130016: Error: chrome_views_delegate.cc (176)] Not applicable [5032: 4816: 0218 / 130016:ERROR:desktop_root_window_host_win.cc(746) ] Not applicable [5032: 4816: 0218/130016: Error: desktop_root_window_host_win. CC (746)] is not applicable.

Is there any way to silence these consoles?

I did not find the chrome driver warnings to silence the way you wrote a filter script quite easily Which can process each line of output and these lines are excluded from STDOT or STDERR (depending on the way they are being sent).

Related:


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -