I have configured a selenium grid instance in kubernets. Which has a deployment that looks somewhat like this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenium-standalone-worker
namespace: default
labels:
app: selenium-standalone-worker
spec:
replicas: 1
selector:
matchLabels:
app: selenium-standalone-worker
template:
metadata:
labels:
app: selenium-standalone-worker
spec:
volumes:
- name: shmem
emptyDir:
medium: Memory
# sizeLimit: 2Gi
containers:
- name: selenium-standalone-worker-container
image: selenium/standalone-firefox:144.0-20251101
imagePullPolicy: Always
ports:
- containerPort: 4444
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1"
memory: "1Gi"
volumeMounts:
- name: shmem
mountPath: /dev/shm
env:
- name: SE_START_VNC
value: "false"
readinessProbe:
exec:
command:
- sh
- -c
- 'curl -s http://localhost:4444/wd/hub/status | grep ''"ready": true'''
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /wd/hub/status
port: 4444
initialDelaySeconds: 15
I would really like to use firefox specific functionality, when my remote webdriver connects to the grid firefox instance.
More specifically I would like to use the driver.get_full_page_screenshot_as_png() firefox functionality.
I suppose I would need to respectively configure the node and my client remote webdriver implementation, but to be honest I'm pretty unsure how to go about this.