Kreatus (Ubot Ninja) 422 Posted February 8, 2012 Report Share Posted February 8, 2012 Hi Guys, I really cant figure out how to fill the content form on whynotad.There's a way but you need to manually interact to the forms before ubot fills it. Try this code below. I include the login credentials for you to test:navigate("http://www.whynotad.com/login", "Wait") if($exists(<email field>)) { then { change attribute(<name="login">, "value", "rebekahc294") change attribute($element offset(<email field>, 0), "value", "rebekahc294@dispostable.com") change attribute(<password field>, "value", "z8tPvPCy33") click($element offset(<login link>, 2), "Left Click", "No") wait for browser event("Page Loaded", "") } else { } } navigate("http://www.whynotad.com/place-free-advertising", "Wait") type text(<name="title">, "This is a title", "Standard") type text(<class="mceContentBody">, "This is a long content", "Standard") Thanks Quote Link to post Share on other sites
JohnB 255 Posted February 8, 2012 Report Share Posted February 8, 2012 Here ya go: navigate("http://www.whynotad.com/login", "Wait")if($exists(<email field>)) { then { change attribute(<name="login">, "value", "rebekahc294") change attribute($element offset(<email field>, 0), "value", "rebekahc294@dispostable.com") change attribute(<password field>, "value", "z8tPvPCy33") click($element offset(<login link>, 2), "Left Click", "No") wait for browser event("Page Loaded", "") } else { }}navigate("http://www.whynotad.com/place-free-advertising", "Wait")type text(<name="title">, "This is a title", "Standard")click(<class="mceContentBody">, "Double Click", "Yes")wait(2)type text(<class="mceContentBody">, "This is a long content", "Standard") John 1 Quote Link to post Share on other sites
rumen 3 Posted February 8, 2012 Report Share Posted February 8, 2012 navigate("http://www.whynotad.com/login", "Wait")if($exists(<email field>)) { then { change attribute(<name="login">, "value", "rebekahc294") change attribute($element offset(<email field>, 0), "value", "rebekahc294@dispostable.com") change attribute(<password field>, "value", "z8tPvPCy33") click($element offset(<login link>, 2), "Left Click", "No") wait for browser event("Page Loaded", "") } else { }}navigate("http://www.whynotad.com/place-free-advertising", "Wait")type text(<name="title">, "This is a title", "Standard")click(<class="mceContentBody">, "Left Click", "Yes")wait(1)type text(<class="mceContentBody">, "This is a long content", "Standard") 1 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted February 8, 2012 Author Report Share Posted February 8, 2012 Hmmn... This is strange.. I tried the same thing earlier with clicking the blocktext before filling up the form but doesnt work. Both of your codes work guys! So +1 for both of you.. Thanks Edit: The problem is not setting the click by location to yes. 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.