youbot 1 Posted October 20, 2013 Report Share Posted October 20, 2013 (edited) There's a button to connect a Twitter account to an online profile. I set Ubot to click on the button, but when the iframe appears, there's nothing in it. The link of the iframe source has aunique for each click. A unique token is created when the button is clicked. Is there any way to scrape the link and navigate to it? Edited October 20, 2013 by youbot Quote Link to post Share on other sites
Otts 4 Posted October 20, 2013 Report Share Posted October 20, 2013 Scrape the link to a variable, then navigate to the variable Quote Link to post Share on other sites
UBotDev 276 Posted October 20, 2013 Report Share Posted October 20, 2013 This might help you: http://www.ubotstudio.com/forum/index.php?/topic/14275-popup-dont-work/&do=findComment&comment=79641 Quote Link to post Share on other sites
youbot 1 Posted October 20, 2013 Author Report Share Posted October 20, 2013 (edited) This might help you: http://www.ubotstudio.com/forum/index.php?/topic/14275-popup-dont-work/&do=findComment&comment=79641 Thanks. I've tried to scrape the URL of the iframe but I am having trouble because the page has multiple frames. Here's the site: http://www.mycokerewards.com/beta/account/authenticate Looks like the url is generated by javascript. The iframe appears in Ubot when you click on the Twitter button. Edited October 20, 2013 by youbot Quote Link to post Share on other sites
UBotDev 276 Posted October 20, 2013 Report Share Posted October 20, 2013 You just need to be a bit creative... Here is the code: navigate("http://www.mycokerewards.com/beta/account/authenticate", "Wait") wait for element(<id="twitter-sign-in">, "", "Appear") click(<id="twitter-sign-in">, "Left Click", "No") wait for element(<src=w"*provider_name=twitter*">, "", "Appear") navigate($scrape attribute(<src=w"*provider_name=twitter*">, "src"), "Wait") Quote Link to post Share on other sites
youbot 1 Posted October 20, 2013 Author Report Share Posted October 20, 2013 You just need to be a bit creative... Here is the code: navigate("http://www.mycokerewards.com/beta/account/authenticate", "Wait") wait for element(<id="twitter-sign-in">, "", "Appear") click(<id="twitter-sign-in">, "Left Click", "No") wait for element(<src=w"*provider_name=twitter*">, "", "Appear") navigate($scrape attribute(<src=w"*provider_name=twitter*">, "src"), "Wait") Ah such a simple solution but it works so well. Thanks. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.