Facing few issues

35 views
Skip to first unread message

Anuj Gupta

unread,
Jul 26, 2016, 2:30:44 AM7/26/16
to caius-users
1) window close command is not working and giving an error below:-

(anugupta) 5 % ::WebDriver::Session::window0 close
bad option "all_windows": should be one of...
  session0 __elements by locator ?root? ?single?
  session0 __execute_async script ?arg arg ...?
  session0 active_window
  session0 capabilities
  session0 cget -option
  session0 cloned
  session0 configure ?-option? ?value -option value...?
  session0 from_json json
  session0 from_tcl __data_dict
  session0 get_log type
  session0 isa className
  session0 log_types
  session0 logging_enabled
  session0 session_id
  session0 session_url
  session0 set_async_script_timeout ms
  session0 set_cloned val
  session0 set_implicit_wait_timeout ms
  session0 set_logging_enabled val
  session0 set_page_load_timeout ms
  session0 set_session_id val
  session0 set_session_url val
  session0 to_json ?arg arg ...?
  session0 windows

Also when there is only 1 window, that cannot be close, is there any specific reason for this scenario. I want to close the last remaining session as part of cleaning things. 

2) There are few more errors given below:-
(anugupta) 6 % ::WebDriver::Session::window0 button_down
::http::geturl http://127.0.0.1:4444/wd/hub/session/0872a066-dfec-4d47-a28b-80cc938246de/buttondown -type application/json -query {{ "button": 0 }}
invalid command name "::ictl::delete"
(anugupta) 7 % 
(anugupta) 7 % ::WebDriver::Session::window0 button_up
::http::geturl http://127.0.0.1:4444/wd/hub/session/0872a066-dfec-4d47-a28b-80cc938246de/buttonup -type application/json -query {{ "button": 0 }}
invalid command name "::ictl::delete"
(anugupta) 8 % 
(anugupta) 8 % ::WebDriver::Session::window0 doubleclick
bad option "::WebDriver::Protocol::response10": should be one of...
  delete class name ?name...?
  delete ensemble name ?name...?
  delete object name ?name...?

All these errors are from window.tcl file , any plan to handle these issues in near time or I can fix them.

tobia...@gmail.com

unread,
Jul 26, 2016, 5:19:20 PM7/26/16
to caius-users
Hi,

thank you for reporting this. I believe the errors below should be fixed in 0.15.5.

I have still seen problems with the button commands, but those seem to originate from the Firefox driver. In the driver log I see

JavaScript Error: "bot.getDocument(...) is undefined" {file: "file:///tmp/anonymous1933951575364272174webdriver-profile/extensions/fxdr...@googlecode.com/components/synthetic-mouse.js"

With Chromium there is no problem.

The last window of a session cannot be closed, because there is absolutely no point of having a session without at least one window. If you were driving the browser directly instead of spawning it through Selenium Server, then quite naturally the session would be gone once the last tab or window is closed. The last window will be closed when you delete the session.

Best regards,
Tobias

Anuj Gupta

unread,
Jul 27, 2016, 2:21:53 AM7/27/16
to caius-users
Thanks Tobias for this urgent fix.

All the issues are resolved in 0.15.5.


On Wednesday, July 27, 2016 at 2:49:20 AM UTC+5:30, tobia...@gmail.com wrote:
Hi,

thank you for reporting this. I believe the errors below should be fixed in 0.15.5.

I have still seen problems with the button commands, but those seem to originate from the Firefox driver. In the driver log I see

JavaScript Error: "bot.getDocument(...) is undefined" {file: "file:///tmp/anonymous1933951575364272174webdriver-profile/extensions/fxdri...@googlecode.com/components/synthetic-mouse.js"
Reply all
Reply to author
Forward
0 new messages