acf-docs
acf-docs copied to clipboard
Can't use multiple configs on one page
Describe the bug I have multiple configs for one page (to be more detailed on a Swagger page). The first one will be executed automatically when the page is loaded to authorize me. The second one will be executed with a hotkey (Ctrl + Shift + X if necessary) and enter data to test REST requests. The automated one will be executed but I can't use the one with the hotkey. If I deactivate the automated one, the other one works. The config order doesn't seem to have an impact.
To Reproduce Steps to reproduce the behavior:
- Create a config to login and let it execute when the page is loaded
- Create a config that will be executed with a hotkey
- Load the page
- the automated config will be executed
- Try to execute the hotkey one
- No data will be entered in the fields
Expected behavior I want to have multiple configs with different hotkeys for the page to test with different data.
Desktop (please complete the following information):
- OS: Win10
- Browser: Chrome
- Version 94.0.4606.71 (64-Bit)
EDIT: The config order has an impact: The one on top/above the other one works.
Hi @NoelTheN00B ,
Does both swagger login page and rest api page are different url.
Can you share some demo configuration
Usually one first configuration picked for for url . So if both login and rest api page have exact same url . You can use two different variant of auto clicker like stable and beta . One to login and other run rest api.
Can you share some demo configuration
login config: https://pastebin.com/EvmkR6bA data config: https://pastebin.com/KZkhEjM3
I use http://swagger.*.paradise.bsz-rancher.hup.intern/swaggerui/swagger-ui/*
in the automated login config as I need the login informations on multiple Swagger with this URL scheme, this URL woks fine. Full URL is http://swagger.p5sdzt1.paradise.bsz-rancher.hup.intern/swaggerui/swagger-ui/index.html?configUrl=/swaggerui/swagger-config.json&urls=&url=http://censored-ip/logistic/calendar/v3/api-docs
The IP is in both configs the same.
Usually one first configuration picked for for url . So if both login and rest api page have exact same url . You can use two different variant of auto clicker like stable and beta . One to login and other run rest api.
This works for now, thanks. It would be a nice feature for the future to use multiple configs on the same URL.
not sure understand how i can use same config in another tab ?
nderstand how i can use same config in another tab ?
You can use regular expressions in URLs to match multiple configurations at once. https://getautoclicker.com/docs/3.x/configuration/url/