How to hide Firefox popup initiated by selenium rc?

every time I test my selenium test, a moment firefox will pop up and show the rc selenium page. This is normal and cool. But I have a problem. For each test, I should also see that the firefox page popped up and the selenium plugin shown was added to firefox.

Is there a way to configure selenium to start firefox without a tooltip after hundreds of tests, it starts to annoy me, D

+3
source share
4 answers

I am sure this is a duplicate of another SO question, as I feel like I answered it earlier, but I cannot find it. If I subsequently find it, I will update my answer.

You need to set the prefix extensions.lastAppVersionaccording to the version of Firefox that you are running. Otherwise, you will usually have an additional tab in Firefox and the Addons pop-up menu.

You may need to configure Selenium to use a custom Firefox profile to make this change.

+1
source

extensions.rdf . Selenium, Selenium. , . "extensions.lastAppVersion" , .

, selenium extensions.rdf, Selenium

+1

Having found this answer and left, I found that merging the Extensions.rdf and extensions.ini files from the temporary profile created in the Selenium session and putting it in the user profile directory solves this problem.

When merging extensions.ini, be careful to avoid the wrong paths.

+1
source

Use it -

From the address bar, enter "about: config" and add / update the following:
- extensions.update.notifyUser (type=boolean; value=false)
- extensions.newAddons (type=boolean; value=false)
This worked for me.

0
source

Source: https://habr.com/ru/post/1760005/


All Articles