r/SeleniumPython • • Dec 29 '22

Selenium problems

1 Upvotes

I need help... I am using a python program to send parameters to the Spain e-administration site to get an appointment for a procedure. But the page is blocking my session: The requested URL was rejected. Please consult with your administrator.

Your support ID is: <1417176221212705327608>. .

I was reading some solutions, and I saw that using sleep.time() I could simulate the writing of a human so that the page doesn't crash. But it didn't work. Can anyone think of something else?


r/SeleniumPython • • Oct 03 '22

How can we get the XY location of a particular div tag so that we can click on it? What i want to do is to click on that tag and drag my mouse to the other div tags using mouse module . Help me with your suggestions

1 Upvotes

r/SeleniumPython • • Jul 10 '26

Help Browser automation for Workday and avoiding captcha

Thumbnail reddit.com
0 Upvotes

r/SeleniumPython • • Jun 25 '26

Python Mphasis python automation interview questions and experience

0 Upvotes

r/SeleniumPython • • Feb 23 '26

Pro Tip: Android user-agent makes the page load lightweight

0 Upvotes

If you are intersted improve the optimization and faster load in head mode it would be good put an android user agent. Why? Mainly for the image size wich are smaller and other stuffs

The user-agent i use:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, como Gecko) Chrome/135.0.0.0 Safari/537.36

r/SeleniumPython • • Feb 20 '26

Selenium THIS is the DOCKERFILE i use in my VPS for webscrapping with undetected_chromedriver (inherts from selenium)

0 Upvotes

"Dockerfile" file content:

FROM python:3.10-alpine


EXPOSE 5900


COPY ./requirements.txt /tmp/requirements.txt
COPY ./app /app
COPY ./scripts /scripts


# Install temporary dependencies
RUN apk update && apk upgrade && \
    apk add --no-cache --virtual .build-deps \
    alpine-sdk \
    curl \
    python3 \
    wget \
    unzip \
    gnupg 


# Install dependencies
RUN apk add --no-cache \
    xvfb \
    x11vnc \
    fluxbox \
    xterm \
    libffi-dev \
    openssl-dev \
    zlib-dev \
    bzip2-dev \
    readline-dev \
    git \
    nss \
    freetype \
    freetype-dev \
    harfbuzz \
    ca-certificates \
    ttf-freefont \
    chromium \
    chromium-chromedriver



# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt && \
    rm /tmp/requirements.txt


WORKDIR /app


# RUN chmod -R +x /scripts


# ENV PATH="/scripts:$PATH"
# ENV DISPLAY=:0
ENV PYTHONUNBUFFERED=1 \
    PYTHONHASHSEED=random \
    MEMORY_LIMIT="512M"


# Delete temporary dependencies
RUN apk del .build-deps


CMD ["python3", "main.py"]

"docker-compose.yml" file:

version: '3.1'
services:
  chrome:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - 5900:5900
    volumes:
      - ./app:/app
    shm_size: '2g'

r/SeleniumPython • • Sep 02 '25

Help with my code

Thumbnail
gallery
0 Upvotes

Hola quería preguntarles PQ mi código no reconoce el Select, ya use el ID, lo busque por el value, y por xpath pero no me reconoce el código.. únicamente necesito que el Select me seleccione el value 1 (siempre será ese valor) alguien me puede ayudar? O si saben dónde puedo ver tutoriales de esto


r/SeleniumPython • • Sep 02 '25

Suggest me few demo websites for Automation testing using pytest framework

0 Upvotes