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 … (pročitajte više)

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 prije 6 minuta

Form data history on Firefox for android?

Hello there, isn't there anything like form data history like there is on the windows version? So when I type something in any text fields it suggests that input the nex… (pročitajte više)

Hello there,

isn't there anything like form data history like there is on the windows version? So when I type something in any text fields it suggests that input the next time I visit the page.

Thanks, Chris

Asked by Chris prije 11 minuta

Bookmarks Toolbar Popup Menu Padding, Color, and more.

Hi All, I'm trying to change the appearance of the "Bookmarks Toolbar / Chevron >>" popup menu, which (after version 88) has turned bright white with extra padding… (pročitajte više)

Hi All,

I'm trying to change the appearance of the "Bookmarks Toolbar / Chevron >>" popup menu, which (after version 88) has turned bright white with extra padding between menu items and rounded corners.

I'm a fan of system menus, so I would really like the popup menu to look like the regular bookmarks menu from the top menu bar (see attached image).

I also like the subtle chiseled vertical line separating the favicons and the descriptions, and the 1px gray border around the menu, plus square corners.

I took a guess at some of the variable names, but only the menu's background color has changed.

Maybe someone knows how to change other attributes such as border color, radius, menu-item-height, padding, and add in the 3D vertical column line?

Thank you!

Here is my first attempt at the code...

#PersonalToolbar menupopup {
  /* Text color */
  --menu-color: #000 !important;
  --arrowpanel-color: #000 !important;
  --panel-color: #000 !important;
  /* Background color */
  --menu-background-color:  #f0f0f0 !important;
  --arrowpanel-background: #f0f0f0 !important;
  --panel-background: #f0f0f0 !important;
  /* Border color (if any) */
  --menu-border-color: #606060 !important;  /* not working on boomarks toolbar menu */
  --menu-border: 1px !important;  /* not working on boomarks toolbar menu */
  --menu-border-radius: 0px !important;  /* not working on boomarks toolbar menu */
}
/*** Tighten up drop-down/context/popup menu spacing (8 Sep 2021) ***/
menupopup:not(.in-menulist) > menuitem, 
menupopup:not(.in-menulist) > menu {
  padding-block: 0px !important; /* reduce to 3px, 2px, 1px or 0px as needed */ 
  min-height: unset !important; /* v92.0 - for padding below 4px */
}

Asked by Slouch prije 40 minuta

Email

Sending of the message failed. An error occurred while sending mail. The mail server responded: <work@email address>: Sender address rejected: not owned by user per… (pročitajte više)

Sending of the message failed. An error occurred while sending mail. The mail server responded: <work@email address>: Sender address rejected: not owned by user personal@email address. Please verify that your email address is correct in your account settings and try again.

This message suddenly coming up after a Thunderbird update, and I cannot send messages from my work email because I don't "own" it. How do I fix this?

TIA.

Asked by rbradburn prije 43 minuta

Thunderbird freezing when creating link in Draft Email.

Good Day, For the last few weeks, when using Thunderbird on Windows and writing a draft email, when clicking on the button to create a link, the draft email window freez… (pročitajte više)

Good Day,

For the last few weeks, when using Thunderbird on Windows and writing a draft email, when clicking on the button to create a link, the draft email window freezes. This also happens if I use the menu bar Insert -> Links...

All other Thunderbird windows remain functioning, and I can effectively continue working, but the frozen draft window will remain on screen until closed through Task Manager.

This only happens when creating a Link, not inserting other objects, like an Image. This problem also does not happen with Thunderbird on Ubuntu.

I am running version 115.10.1.

Thanks in advance for any tips that could be of help.

Asked by KI89 prije 1 sat

Speedometer2.1 My Firefox Score: 161 My Chrome Score: 380

Speedometer2.1 My Firefox Score: 161 My Chrome Score: 380 why im missing? its normal? same hardware, no extensions. how can i increase my firefox score? i have Ryzen … (pročitajte više)

Speedometer2.1 My Firefox Score: 161 My Chrome Score: 380

why im missing? its normal? same hardware, no extensions.

how can i increase my firefox score?

i have Ryzen 5600 CPU and Radeon 6600 VGA and M2 SSD

Asked by moderndefender prije 1 sat

tabs and auto updates

I just lost several hundred tabs on Firefox mobile right after it updated itself. The most recent tabs show only ten of those tabs, which were all opened and closed tod… (pročitajte više)

I just lost several hundred tabs on Firefox mobile right after it updated itself. The most recent tabs show only ten of those tabs, which were all opened and closed today and aren't part of what I need to restore.

How do I get my tabs back? I've seen no 'restore previous session' option. My laptop only shows the few I have open now. What do I do to restore them?

Asked by Katerpie prije 2 sati

Setting border color for focused URL Bar

Hi All, I'm trying to set the border color for my url & search bars to gray when non-focused, and blue when receiving the focus. The following code works for the se… (pročitajte više)

Hi All,

I'm trying to set the border color for my url & search bars to gray when non-focused, and blue when receiving the focus.

The following code works for the search bar, but the url bar is receiving a separate blue border around the gray border, instead of changing the color from gray to blue.

Can someone suggest how I might set the url bar to blue (just a single border, not the double it has now), both when it has focus and when it's expanded?

Thank you!

/* set non-focused url & search bars to gray border */
#urlbar > #urlbar-background, #urlbar[breakout][breakout-extend] > #urlbar-background, #searchbar { border: 1px solid #a1a6b5 !important; outline: none !important; border-radius: 0px !important; }
/* set focused search bar to blue border */
#urlbar-background, #urlbar[breakout][breakout-extend] > #urlbar-background:focus-within, #searchbar:focus-within { border: 1px solid #0078d7 !important; }
/* set focused url bar to blue border */
#urlbar-background, #urlbar[breakout][breakout-extend] > #urlbar-background:focus-within, #urlbar:focus-within { border: 1px solid #0078d7 !important; }

Asked by Slouch prije 2 sati

Theme

I choose a new theme. After a while, I close Firefox. When I start Firefox again, my chosen theme appears briefly, then the default theme replaces it. Why? FYI: it doesn'… (pročitajte više)

I choose a new theme. After a while, I close Firefox. When I start Firefox again, my chosen theme appears briefly, then the default theme replaces it. Why? FYI: it doesn't happen with just one theme.

Asked by Iridium.throne prije 5 sati

Is it normal for bookmarks to take this long to load on startup?

I am using the latest version of firefox nightly. I notice this on another PC that shares the same profile. However one of my PCs doesn't take this long and it uses the… (pročitajte više)

I am using the latest version of firefox nightly. I notice this on another PC that shares the same profile. However one of my PCs doesn't take this long and it uses the same profile as well. It also seems that the pinned tabs are not loading correctly because I get errors with those pages too.

https://imgur.com/a/6IIyTJc

Asked by gsrgtrdg4565653 prije 5 sati

Instagram page won't load.

Instagram page won't load. Doesn't load in Edge either. The proxy setting is off. It was loading yesterday, then today it won't. No malware detected by Mcafee or Spyhunte… (pročitajte više)

Instagram page won't load. Doesn't load in Edge either. The proxy setting is off. It was loading yesterday, then today it won't. No malware detected by Mcafee or Spyhunter. My account is working fine from my phone.

Asked by djrutger444 prije 7 sati

Youtube has stopped working suddenly

I've disabled all of my addons, cleared cache, and still youtube is broken for me. It works fine with Chrome still. Any ideas on how to fix? See attched screenshot. … (pročitajte više)

I've disabled all of my addons, cleared cache, and still youtube is broken for me. It works fine with Chrome still. Any ideas on how to fix? See attched screenshot.

Asked by gk16 prije 7 sati

Lost personalization of Windows10 and Firefox after a power failure.

Re-booting following a power failure, I entered my pin & received a message something like, "Would you like to sign out? If you continue you risk losing personal data… (pročitajte više)

Re-booting following a power failure, I entered my pin & received a message something like, "Would you like to sign out? If you continue you risk losing personal data. You can protect your data by signing out, then signing in again". So I signed out, then signed in again and the boot proceeded but it was like a brand new installation. Desktop background was Windows blue, about half my desktop icons gone, all default apps reset, in Firefox all my plug-ins/extensions gone, all my bookmarks gone. And Windows Settings now won't let me set Firefox as the default browser and when FF offers to set itself as the default browser, that doesn't work either.

I've got the feeling this is some kind of identity issue gone awry but I don't know how to fix it. Hoping someone on this forum recognizes the problem, and knows a solution. Thanks for any help offered.

Asked by vimy100 prije 7 sati

SIGN_IN ID

My sign-in ID is aaaan email that has been cancelled. As long as they don't asl me to retrieve any codes oranything it works of course. If anything is sent to that email … (pročitajte više)

My sign-in ID is aaaan email that has been cancelled. As long as they don't asl me to retrieve any codes oranything it works of course. If anything is sent to that email I can not retrieve it. Usually kepping me out of Fire fox. I need to see if amyonr know how to change your sign-in ID>

Thanks Paul

Asked by Paul Ellis prije 9 sati