Showing questions tagged: Show all questions

Can't launch my url in Selenium-controlled Firefox browser process

Receiving this error: Firefox is already running, but is not responding. The old Firefox process must be closed to open a new window. My desktop app redirects user to a … (read more)

Receiving this error: Firefox is already running, but is not responding. The old Firefox process must be closed to open a new window.

My desktop app redirects user to a login screen on Firefox, and I want to automate it using Selenium. My current workflow: 1. Launch Selenium-controlled Firefox browser using GeckoDriver 2. Click on "Login" button on my desktop app. The desktop app launches the login screen on user's OS default browser using the default user profile (in which case I set in profiles.ini to the temp profile copy created by Selenium). 3. (ERROR) Popup on the above error is displayed

Code: import configparser import os

web_driver = selenium_webdriver.Firefox(executable_path='C:\\Users\\mnxl\\.wdm\\drivers\\geckodriver\\win64\\v0.34.0\\geckodriver') profile = web_driver.capabilities['moz:profile']

  1. Path to the Firefox profiles folder

profiles_path = os.path.expanduser(r'~\AppData\Roaming\Mozilla\Firefox')

  1. Path to the profiles.ini file

profiles_ini_path = os.path.join(profiles_path, 'profiles.ini')

  1. Read the profiles.ini file

config = configparser.ConfigParser() config.read(profiles_ini_path)

  1. Find the section for the profile to set as default

for section in config.sections():

   if config.has_option(section, 'Path') and config.get(section, 'Path') == profile:
       # Set this profile as the default
       config.set(section, 'Default', '1')
   else:
       # Set all other profiles as not default
       config.set(section, 'Default', '0')
  1. Write the changes back to the profiles.ini file

with open(profiles_ini_path, 'w') as configfile:

   config.write(configfile)

Asked by Magdeline Ng 9 hours ago

Touch Keyboard not working in Firefox

I have windows 10 pro (64), 22H2 OS build 19045.4170, Windows Feature Experience Pack 1000.19054.1000.0 and latest Firefox (125.0.3) installed on A HP Pavilion Notebook 1… (read more)

I have windows 10 pro (64), 22H2 OS build 19045.4170, Windows Feature Experience Pack 1000.19054.1000.0 and latest Firefox (125.0.3) installed on A HP Pavilion Notebook 17 F121DS, Serie 5CD4355YDX. Touch Keyboard (not to be confused with on-screen) opens and closes immediately; sometimes, on the first occurrence, it stays open long enough to be able to click on a text field and then disappears. "On screen keyboard" works fine as does "Touch keyboard" in Edge and Chrome and all other Apps. Since this is a recent occurrence, and a lot of odd changes took place after the last FF update, I have reverted to Firefox 124, after this did not work also did a restore to last Restore Point from April. No change! I have consulted the [1754973] as well as [1750584] , but these did not help me much further. Any suggestions or is there a bug?

Asked by Karl 4 hours ago

As of 5/5/2024 I am unable to login to my outlook.com account from Firefox.

I can login from other web browsers, but not Firefox. What's going on? When I try to login as I have always dine in the past, this is what comes up: https://outlook.liv… (read more)

I can login from other web browsers, but not Firefox. What's going on?

When I try to login as I have always dine in the past, this is what comes up: https://outlook.live.com/mail/0/

But then absolutely nothing happens. Please advise.

Asked by cleo.miller 3 hours ago

Desktop icons

The file icons on by desktop were always the standard color but now the are blue and white why did this happen. I know I can change each one back individually but how can… (read more)

The file icons on by desktop were always the standard color but now the are blue and white why did this happen. I know I can change each one back individually but how can I change them in mass.

Asked by melankney 1 hour ago

web cam image

Web cam image on web page stopped working after last update. Using win 11. Tried refresh, worked last time but not this time, checked permission security settings. Can ge… (read more)

Web cam image on web page stopped working after last update. Using win 11. Tried refresh, worked last time but not this time, checked permission security settings. Can get the camera image on a tablet but not laptop. (lenovo) Anything I might have missed?

Asked by fresch1123 27 minutes ago