/cef-pyhton-selenium

how to start testing cef applications with python and selenium

Primary LanguagePython

cef-pyhton-selenium

How to start testing CEF applications with python and selenium on windows

UPD(11/3/2018) In current moment that is not actual solution. I wrote new one to solve this problem https://github.com/sokolnikovalexey/cef-nodejs-selenium

===

##Installing the Environment

  1. Clone this repo
  2. Download and install Python 2.7
  3. Download ChromeDriver binary and move it to c:/chromedriver
  4. Add chromedriver to PATH system variable
  5. Install necessary python modules
  • python -m pip install selenium
  • may be you need to install more modules (python will tell about in console)
  1. Run selenium_chrome_test.py to ensure that there is no errors with python, chrome or chromedriver
  • python selenium_chrome_test.py

##Start Writing CEF-tests

  1. Open calc_cef_test.py with any CodeEditor
  2. Set APPLICATION_PATH value where is your CEF application is placed (in my case it was cefclient.exe)
  3. Set TEST_PAGE_PATH value where is your testing html page is placed (if necessary) or use my test page from calc-proto/index.html
  4. Update test case for your needs or use my test cases
  5. Run python calc_cef_test.py

##Useful Resources