I have developed a project using the Django framework, in which the Chrome browser is launched through Selenium to do some operations
on VMware"s virtual machine, I installed the Win7 64-bit operating system, then installed Apache 2.464-bit and the mod_wsgi,Django project can be accessed normally.
when I use the server that comes with Django (using manage.py runserver 0.0.0.0 Chrome 8000), I can launch the Chrome browser normally through Selenium
but when I switch to the Apache server, I run the same code and the Chrome browser does not display it, but you can see the chromedriver and chrome processes in the process. The page prompts that the corresponding element cannot be found.
the versions of each software I installed are as follows
VMware Workstation 15.0.0 build-10134415
Windows 7 64bit on VMware Virtual Machine
Apache 2.4.37 Win64
mod_wsgi 4.6.5+ap24vc14-cp36-cp36m-win_amd64
python 3.6.4 64bit
Django 2.0.7
selenium 3.14.1
chromdriver win32_v2.43,win32_v2.42