Heyo,
I'm trying to jump between two tabs using Click. The issue is that the URLs for these sites are similar. For example:
Tab1: example.com/home/example/
Tab2: example.com/home/example/view/
I can navigate from Tab1 to Tab2 easily but I don't know a good way to get from Tab2 to Tab1.
Is there a proper way to do this within click's page setting or a workaround folks have found?
Thanks
If these are tabs within the same page and you have an element to click on, then you can use the {click} command. You can find documentation here: Text Blaze | {click}.
Hi Patrick,
Here's two options:
- Remove the wildcard asterisk from the page= setting of the {click} command. For example: instead of
{click: page=https://community.blaze.today/*; frame=top; selector=...} you can use {click: page=https://community.blaze.today/; frame=top; selector=...}
- If you must use the wildcard, you can set
select=yes like so {click: page=https://community.blaze.today/*; frame=top; select=yes; selector=...} - this will always open the dialog box that lets you choose the tab you want to switch back to.
Let us know if it works for you.
I'm afraid I've tried these options.
Using the selector does work but is slower than using autohotkey scripts to swap windows for me.
There is always a 4 number code in the URL for "Tab1." I did try using regex but I don't know if click's page option supports that function.
Thanks
The patterns in the page= setting have to govern these rules: Match patterns | Chrome for Developers
At the moment sadly it looks like select=yes is the only available option.
This is good information to know. Thanks for all the help!