Find word then close the tab

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
pranto1902
Posts: 7
Joined: Thu Aug 24, 2017 5:17 am

Find word then close the tab

Post by pranto1902 » Thu Aug 24, 2017 5:30 am

Hello,
I am looking for a help :)
I want a script that does like this:

1. The browser already have multiple webpage loaded in different tab.
2. When I'll run the .iim (I'm Firefox user) File, then it will find a specific word in every tab, and if match then that tab(s) will be closed.

I'm new to scripting. It's not possible with record. So someone please help me.
Please give me an example with any word.

Thanks for reading and helping :)
chivracq
Posts: 9485
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Find word then close the tab

Post by chivracq » Thu Aug 24, 2017 11:46 am

pranto1902 wrote:Hello,
I am looking for a help :)
I want a script that does like this:

1. The browser already have multiple webpage loaded in different tab.
2. When I'll run the .iim (I'm Firefox user) File, then it will find a specific word in every tab, and if match then that tab(s) will be closed.

I'm new to scripting. It's not possible with record. So someone please help me.
Please give me an example with any word.

Thanks for reading and helping :)
CIM...! :mrgreen:
Oh...!, "Firefox" mentioned... => "FCIM" instead of "CIM"...! :mrgreen: (Read my Sig...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply