Skip to content

Instantly share code, notes, and snippets.

@yucer
Created August 9, 2017 09:14
Show Gist options
  • Save yucer/bab79c96a00fae92a491268be16020ca to your computer and use it in GitHub Desktop.
Save yucer/bab79c96a00fae92a491268be16020ca to your computer and use it in GitHub Desktop.
Test sendKeys with CONTROL using Selenium Java (LOG)
Opening new Tab
webdriver::server DEBUG -> POST /session/cf7cca51-aeb8-4d18-b52a-ce6e7ef7f0d4/element/b1c10055-c301-4892-930c-2e1859fb13d9/value {"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]}
geckodriver::marionette TRACE -> 121:[0,5,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]}]
Marionette TRACE 0 -> [0,5,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]}]
geckodriver::marionette TRACE <- [1,5,null,{}]
Marionette TRACE 0 <- [1,5,null,{}]
webdriver::server DEBUG <- 200 OK {"value": {}}
webdriver::server DEBUG -> POST /session/cf7cca51-aeb8-4d18-b52a-ce6e7ef7f0d4/element/b1c10055-c301-4892-930c-2e1859fb13d9/value {"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"z12345","value":["","z","","1","2","3","4","5"]}
geckodriver::marionette TRACE -> 139:[0,6,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"z12345","value":["","z","","1","2","3","4","5"]}]
Marionette TRACE 0 -> [0,6,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"z12345","value":["","z","","1","2","3","4","5"]}]
Marionette TRACE 0 <- [1,6,null,{}]
geckodriver::marionette TRACE <- [1,6,null,{}]
webdriver::server DEBUG <- 200 OK {"value": {}}
You should see only 12345 text now because of the undo.
Closing the browser
1502268793303 webdriver::server DEBUG -> DELETE /session/cf7cca51-aeb8-4d18-b52a-ce6e7ef7f0d4
1502268793303 geckodriver::marionette TRACE -> 37:[0,7,"quit",{"flags":["eForceQuit"]}]
1502268793305 Marionette TRACE 0 -> [0,7,"quit",{"flags":["eForceQuit"]}]
1502268793307 Marionette INFO New connections will no longer be accepted
1502268793858 Marionette TRACE 0 <- [1,7,null,{"cause":"shutdown"}]
1502268794078 geckodriver::marionette TRACE <- [1,7,null,{"cause":"shutdown"}]
1502268794078 webdriver::server DEBUG Deleting session
1502268794078 geckodriver::marionette DEBUG Stopping browser process
1502268794203 webdriver::server DEBUG <- 200 OK {"value": {}}
1502268794322 webdriver::server DEBUG -> GET /shutdown
1502268794332 webdriver::server DEBUG <- 404 Not Found {"value":{"error":"unknown command","message":"GET /shutdown did not match a known command","stacktrace":"stack backtrace:\n 0: 0x5787ed - backtrace::backtrace::trace::h59229d13f6a8837d\n 1: 0x578942 - backtrace::capture::Backtrace::new::h23089c033eded8f0\n 2: 0x4463cc - webdriver::error::WebDriverError::new::hd11f864b1fdf4510\n 3: 0x438eb8 - <webdriver::server::HttpHandler<U> as hyper::server::Handler>::handle::hd20f6e9e0a69e2b4\n 4: 0x42c9af - hyper::server::listener::spawn_with::{{closure}}::h8fa3cf343f537777\n 5: 0x4092d7 - std::panicking::try::do_call::h649be53a713433eb\n 6: 0x5dc20a - panic_unwind::__rust_maybe_catch_panic\n at /checkout/src/libpanic_unwind/lib.rs:98\n 7: 0x41c43e - <F as alloc::boxed::FnBox<A>>::call_box::hf41feb3b2b67541e\n 8: 0x5d48a4 - alloc::boxed::{{impl}}::call_once<(),()>\n at /checkout/src/liballoc/boxed.rs:650\n - std::sys_common::thread::start_thread\n at /checkout/src/libstd/sys_common/thread.rs:21\n - std::sys::imp::thread::{{impl}}::new::thread_start\n at /checkout/src/libstd/sys/unix/thread.rs:84"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment