Created
June 27, 2022 15:22
-
-
Save ganigithub/9f3d19d1df62c6645d56a05631c7e172 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pyautogui | |
import pyautogui as pg | |
def inspect(self, x_dev_tools,y_dev_tools,x_bottom_symbol,y_bottom_symbol,x_network,y_network,x_xhr,y_xhr,x_refresh,y_refresh): | |
""" | |
This function will open developer tools and navigate to network panel. | |
Input parameters are the coordinates of buttons on screen. | |
""" | |
#click on inspect menu | |
sleep(1) | |
pg.click(x_dev_tools, y_dev_tools, interval=1) | |
#click on bottom symbol | |
pg.click(x_bottom_symbol, y_bottom_symbol, interval=1) | |
#click on network panel | |
pg.click(x_network, y_network, interval=1) | |
#click on Fetch/XHR | |
pg.click(x_xhr, y_xhr, interval=1) | |
#refreshing page | |
pg.click(x_refresh, y_refresh) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment