ChromeDriver Architecture.

706 visninger
Gå til det første ulæste opslag

Nhữ Văn Cử

ulæst,
5. nov. 2015, 03.57.3105.11.2015
til ChromeDriver Users
Hi ChromeDriver Users,

I'm working on a Selenium Project. In now, I want to understand deeply about the ChromeDriver. So Please help me to awser these question: 
1. The architecture of ChromeDriver?
2. How to download source code(I can't see project source code)
3. How ChromeDriver communication with Selenium(WebDriver) and Chrome Browser

Thank you so much!

Sam Uong

ulæst,
5. nov. 2015, 19.09.4505.11.2015
til Nhữ Văn Cử, ChromeDriver Users
I'm not sure exactly what you want to know about the architecture, but at a high level ChromeDriver implements the WebDriver protocol, which is a REST-like interface defined here. WebDriver clients communicate with ChromeDriver by sending HTTP requests. ChromeDriver then communicates with the browser through the DevTools remote debugging interface, which is a WebSockets interface described here.

The ChromeDriver sources are in the Chromium tree, and you can check out a copy by following these instructions: https://www.chromium.org/developers/how-tos/get-the-code

Most of the code is under the src/chrome/test/chormedriver directory. The main function is in chromedriver_server.cc, which sets up an HttpServer that responds to each HTTP request. If you want to follow the code for each WebDriver command, you can start at http_handler.cc, which contains a mapping from each WebDriver command to the C++ function that implements it. The best way to familiarize yourself with the code is to pick a command and follow what it does starting from http_handler.cc.

Hope this helps.

Sam.

--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nhữ Văn Cử

ulæst,
6. nov. 2015, 06.04.2306.11.2015
til ChromeDriver Users, nvc...@gmail.com
Hi Sam,

Thank you so much for your support. That is good information for me. Hope everything good to you.

Have a nice day!

Vào 07:09:45 UTC+7 Thứ Sáu, ngày 06 tháng 11 năm 2015, Sam Uong đã viết:
Svar alle
Svar til forfatter
Videresend
Indlægget blev slettet
0 nye opslag