English > PVD Python Scripts

Firefox Selenium Script Discussion

<< < (2/3) > >>

Ivek23:

--- Quote from: afrocuban on March 15, 2025, 12:09:36 am ---I am sorry to hear that. If you could be a bit more specific maybe I'd get an idea what it might be.
--- End quote ---

This, as seen in the picture.

afrocuban:
Ok, that's better. Let's move debugging to the other topic, you may call it Firefox Selenium?  Several ideas:
1. Did you rename any files, in this case did you rename Selenium_Chrome_Base_page_v4.py? If so, rename everywhere in the .psf too.
2. What says in the correspondent base.log file in \Tmp folder?

Ivek23:

--- Quote from: afrocuban on March 15, 2025, 08:31:48 am ---1. Did you rename any files, in this case did you rename Selenium_Chrome_Base_page_v4.py? If so, rename everywhere in the .psf too.

--- End quote ---

No, I didn't rename Selenium_Chrome_Base_page_v4.py or the other python files, because it would be too time-consuming to do it everywhere in the .psf files. Everything I did in all the python files, I only changed the settings on firefox and geckodriver.


--- Quote from: afrocuban on March 15, 2025, 08:31:48 am ---2. What says in the correspondent base.log file in \Tmp folder?

--- End quote ---

That's all that was written in python_script_base_page.txt.
--- Quote ---2025-03-15 10:08:08,399 - DEBUG - Starting the Python script.
2025-03-15 10:08:08,403 - DEBUG - Starting new HTTP connection (1): ipinfo.io:80
2025-03-15 10:08:08,641 - DEBUG - http://ipinfo.io:80 "GET /country HTTP/1.1" 200 27
2025-03-15 10:08:08,642 - DEBUG - Country code: SI, Language code: sl

--- End quote ---



--- Quote from: afrocuban on March 15, 2025, 08:31:48 am ---Ok, that's better. Let's move debugging to the other topic, you may call it Firefox Selenium?
--- End quote ---

Ok.

afrocuban:

--- Quote from: Ivek23 on March 15, 2025, 10:11:16 am ---
No, I didn't rename Selenium_Chrome_Base_page_v4.py or the other python files, because it would be too time-consuming to do it everywhere in the .psf files. Everything I did in all the python files, I only changed the settings on firefox and geckodriver.
--- End quote ---
When the driver is called in python script, is it called as chrome, or gecko? It would be good to share you script so we could visually see how you adjusted it.


--- Quote ---
That's all that was written in python_script_base_page.txt.
--- Quote ---2025-03-15 10:08:08,399 - DEBUG - Starting the Python script.
2025-03-15 10:08:08,403 - DEBUG - Starting new HTTP connection (1): ipinfo.io:80
2025-03-15 10:08:08,641 - DEBUG - http://ipinfo.io:80 "GET /country HTTP/1.1" 200 27
2025-03-15 10:08:08,642 - DEBUG - Country code: SI, Language code: sl

--- End quote ---

--- End quote ---


This why I suspect driver isn't called at all... Try to test the script from the cmd and you will get more informative response. For the title search:


--- Quote ---pyhton FullPathToTheScript titleIMDb "10 Things...." (with the double qoutes, or single quotes, it depends on your setting, try them both)

--- End quote ---

for the main page:


--- Quote ---pyhton FullPathToTheScript "MovieURL" "FullPathToThe\downpage-UTF8_NO_BOM.htm" (with the double qoutes, or single quotes, it depends on your setting, try them both)

--- End quote ---

Ivek23:
Here are the Scripts adapted for firefox so that you can see my adaptation and maybe errors or I did something wrong or did not change anything.

Scripts adapted for firefox are attached.

Interesting, I also did a test with Chromedriver (without using the Chrome browser), and it works great there.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version