Reverze 0 Posted January 27, 2013 Report Share Posted January 27, 2013 I have this div: <div style="padding:4px;width:300px;background-color:#111;color:#fff;border:1px solid #666;font-size:11px;"><b>Maximum amount:</b> 50 units</div>I want to set a variable with the value 50 that is in the div.The value in the div is different every time. Is there anybody who know how to do this? Quote Link to post Share on other sites
VaultBoss 310 Posted January 27, 2013 Report Share Posted January 27, 2013 Here you go: navigate("The_Page_You_Are_Scraping_From_Goes_Here", "Wait") set(#var_WEB_ScrapeInnerValue, $scrape attribute(<innerhtml=w"<b>Maximum amount:</b> * units">, "innertext"), "Global") set(#var_WEB_ScrapeInnerValue, $find regular expression(#var_WEB_ScrapeInnerValue, "(\\d)*"), "Global") set(#var_WEB_ScrapeInnerValue, $trim(#var_WEB_ScrapeInnerValue), "Global") 1 Quote Link to post Share on other sites
Reverze 0 Posted January 27, 2013 Author Report Share Posted January 27, 2013 Thanks VaultBoss, that did the trick :-) I was trying to do it with one set.Learned alot from this answer, going to use this for more issues I had :-) Quote Link to post Share on other sites
VaultBoss 310 Posted January 27, 2013 Report Share Posted January 27, 2013 You're welcome! 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.