Skip to main content

All Questions

Tagged with
0 votes
0 answers
6 views

Selenium not opening the profile I needed

from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options import time chrome_options = Options() chrome_options....
Saad Latheef's user avatar
0 votes
0 answers
31 views

Unable to Start Chrome Session in Selenium: "Could not remove old devtools port file" Error

I'm attempting to run this script in digitalocean server, it worked fine on my computer but not on the server. <!-- begin snippet: js hide: false console: true babel: false --> Traceback (most ...
Deka Halane's user avatar
0 votes
1 answer
34 views

How can I solve this problem with ChromeDrive?

I have this code: from selenium import webdriver from selenium.webdriver.common.by import By import time driver = webdriver.Chrome(r'C:\dchrome\chromedriver.exe') driver.get('https://www.smv.gob.pe/...
Sebastian Gómez Tenorio's user avatar
1 vote
1 answer
23 views

python selenium keep my login information to open chrome

I logined my youtube account,now I want to use selennium to open chrome and then open wwww.youtube.com/ with the account logined.how to achieve that? user_data_dir=r'C:\Users\cccc\AppData\Local\...
learner's user avatar
  • 13
0 votes
2 answers
94 views

Fetch likes from Instagram reels

In an attempt to study Benfords law, I'm trying to get a list of the likes on recommendet Instagram Reels. So the plan is simply to open Reels, fetch the Like Count, swipe to the next Reel and repeat ...
haifisch123's user avatar
0 votes
0 answers
16 views

How can I open a Chrome profile with a proxy?

I want to use Python to open a specific chrome user profile, but it should use a proxy. proxies = [ "http://username:pw@ip:port", "http://username:pw@ip:port" ] ...
Max Raffles's user avatar
0 votes
0 answers
49 views

How to Intercept and Modify JavaScript Responses Before Execution Using Chrome DevTools Protocol (CDP)

I'm working on a project where I need to intercept JavaScript code that the browser receives but prevent it from executing immediately. I want to modify the JavaScript code to inject a custom worker ...
NoNam4's user avatar
  • 537
0 votes
0 answers
20 views

Selenium Adding Default Profile

I want my Google Chrome browser, which I opened for web scraping, to open with either the default profile or a specific profile. Selenium automatically opens it as a guest. I tried this code but it ...
Burak's user avatar
  • 37
1 vote
0 answers
38 views

Saving a page as pdf and SPECIFIYING WHERE THE DOCUMENT GOES

I want to save a page as a PDF. I am using Selenium in Python. I have the codes, and everything works. The only thing that I can't is not working that the PDF goes straight to the downloads folder. I ...
Abdelrahman Keraitam's user avatar
0 votes
1 answer
28 views

python selenium Headless chrome doesn't scroll

I'm working on a web scrapper to collect Facebook post comments for analytics purposes. On Facebook, after login, we can scroll the post page to get all the comments. Which dynamically loads the ...
silverFoxA's user avatar
  • 4,609
0 votes
0 answers
87 views

Service chromedriver unexpectedly exited. Status code was: 127

I am having problem running selenium python tests on Gitlab CI. But those works fine if I run on my local system. Those tests were working fine earlier on CI with chrome and chrome-driver version 114 ...
varun's user avatar
  • 221
3 votes
1 answer
77 views

Resize Chrome Application

I'm an amateur coder and I'm trying to resize the chrome application by pressing a key on my keyboard by using python. I want my code to be able to resize the window to (300, 1080) and (1920, 300), as ...
Penguin's user avatar
  • 31
0 votes
0 answers
47 views

ChromeDriver Assuming Crash: The process started from chrome location /usr/bin/google-chrome is no longer running

I am working on a web scraping bot using Selenium in Python. My setup involves using webdriver.Chrome and I am running into an issue where the ChromeDriver assumes that Chrome has crashed. Here are ...
Sakib ovi's user avatar
  • 560
0 votes
0 answers
72 views

Getting cookies in chrome headless mode

We have created a script for automated site tests in selenium, the test detects whether the correct cookies are loaded when the consent is selected in the cookie bar cookiebot. Example, the script in ...
Jakub Sobotka's user avatar
-1 votes
1 answer
39 views

Python Bot Fails to Select Google Ads and Window Closes Automatically

I'm working on a Python bot that needs to interact with Google Ads, but I'm encountering a couple of issues: The bot fails to select elements related to Google Ads. The browser window closes ...
Junaid Amir's user avatar

15 30 50 per page
1
2 3 4 5
151