I try to take of the whole screen, a capture of a small fragment. I try to take a screenshot with the dimensions (w, x, y, z) of the window. Where the photo takes the values:
w = 240, 200
x = 540, 200
y = 240, 600
z = 600, 600
But honestly, I don't know how to implement it in my code. Is this:
from selenium import webdriver
driver.save_screenshot(r'C:\Users\youna\Pictures\1\{}.png'.format(codigos_1[i]))
How could I do it?