I have automated the login and opening of dev tools, but how do I switch to the Network tab, filter for a particular request named “ReadCardAccountOffersList,” and extract the response?
My suggestion is to make an XClickText | Network
on the tab, and then click inside the response field. Send XType +CtrlA to mark the response, and then CtrlC to copy it. → Now the JSON reponse is inside the !clipboard
variable and you can further process it in the macro.
Thanks, but XClick with image and XClickText will only put my mouse pointer on the Network tab, not click it.
It works for me like any other desktop xclick:
I see that you are using Mac. → Is XClick on Chrome tabs or menu items working in general? Is desktop automation working for you? (If not it might be a Mac permission issue. What macOS version are you using?)
I am on Sonoma 14.6.1. It is not working in general. I have granted permissions where it was requested.
I have set up the XClick as such with the image:
A pink frame (=mouse click spot) must not be in the green frame (=image to find). If you want to click inside the green frame, no frames are required at all. In that case the simple XCLICK command will do. It automatically clicks in the center of the image.
The green/pink frame are only used for XClickRelative. Use this command when you want to click outside image to be found. In this case the green frame indicates the image to be found, and the center of pink box is the mouse click position.
Maybe this is the issue?
XClick in general works fine on Mac in general and Sonoma in particular. During my test I saw an issue on Sonoma 14.5, but once I upgraded to Sonoma 14.7 all was working fine again. Here is my test with macOS Sonoma 14.7:
The macro finds the “Network” image and clicks on it.
Could you elaborate more on how to do it ? Cause when I try to click outside of main window, nothing is selected… invalid target
error:
* [info]
Executing: | XClick | | |
* [error]
[Line 9] : E316: XClick: invalid target, ''
@Igor_Savinkin Can you post a video of your macro running?