iMacros - 在另一个选项卡中打开iFrame [英] iMacros - Open an iFrame in another tab
问题描述
如何在新标签中打开iFrame?我选择带有FRAME F = 1的iFrame后尝试使用 URLCURRENT ,但它无效。
How could I open an iFrame in a new tab? I tried using URLCURRENT after selecting the iFrame with "FRAME F = 1" but it did not work.
我认为这可以通过使用 SEARCH 搜索iFrame代码并提取网址来完成,但我不知道该怎么做。
I think this could be done by using "SEARCH" to search the iFrame code and extract the URL, but I do not know how to do it.
iMacros Firefox(版本8.9.7)
iMacros Firefox (Version 8.9.7)
推荐答案
在这里你走了...
'Clear Extraction memory
SET !EXTRACT NULL
'Using current tab/window
TAB T=1
'Extract URL from first IFrame
TAG POS=1 TYPE=IFRAME ATTR=* EXTRACT=HREF
'Pass URL to variable
SET iFrameURL {{!EXTRACT}}
'Open new Tab/window
TAB OPEN
'Switch to the new Tab/window
TAB T=2
'Navigate to URL from varable (iframe url)
URL GOTO={{iFrameURL}}
修改<$如果有多个if,则c $ c> POS = 1 到相应的iframe位置rame ...所以 POS = 3
为第3个iFrame。
Modify the POS=1
to the appropriate iframe location if there are multiple iframe... so POS=3
for the 3rd iFrame.
如果此解决方案对您有所帮助,请将此标记为答案。谢谢!
Please mark this as an answer if this solution helped you. Thanks!
这篇关于iMacros - 在另一个选项卡中打开iFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!