acf-docs icon indicating copy to clipboard operation
acf-docs copied to clipboard

Can't use multiple configs on one page

Open n0eL1405 opened this issue 3 years ago • 5 comments

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:

  1. Create a config to login and let it execute when the page is loaded
  2. Create a config that will be executed with a hotkey
  3. Load the page
  4. the automated config will be executed
  5. Try to execute the hotkey one
  6. 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.

n0eL1405 avatar Oct 11 '21 09:10 n0eL1405

Hi @NoelTheN00B ,

Does both swagger login page and rest api page are different url.

Dhruv-Tech-Apps avatar Oct 11 '21 13:10 Dhruv-Tech-Apps

Can you share some demo configuration

Dhruv-Tech-Apps avatar Oct 11 '21 13:10 Dhruv-Tech-Apps

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.

dharmesh-hemaram avatar Oct 11 '21 13:10 dharmesh-hemaram

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.

n0eL1405 avatar Oct 11 '21 14:10 n0eL1405

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.

n0eL1405 avatar Oct 11 '21 14:10 n0eL1405

not sure understand how i can use same config in another tab ?

kilik128 avatar Oct 22 '22 15:10 kilik128

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/

Dhruv-Tech-Apps avatar Nov 18 '22 08:11 Dhruv-Tech-Apps