groneg 0 Posted January 29, 2010 Report Share Posted January 29, 2010 Behavior for Wordpress is different via Ubot vs Manually. I'm trying to automatically add a Category for Wordpress. As a simple test, I hardcode the category and run the bot. The category gets filled in the field but it is dimmed. When I click in the field, the original hardcoded category disappears. See img examples of what the hardcoded vs manual versions look like... Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 29, 2010 Report Share Posted January 29, 2010 So when you make a new post you want to add a new category and select that one? Or are you just trying to add categories? Quote Link to post Share on other sites
alcr 135 Posted January 29, 2010 Report Share Posted January 29, 2010 A screenshot of your script would make it easier. Quote Link to post Share on other sites
groneg 0 Posted January 29, 2010 Author Report Share Posted January 29, 2010 So when you make a new post you want to add a new category and select that one? Or are you just trying to add categories? The former. I'm trying to 1) make a post 2) add a new category I first tried add the category via a list - then I tried to add it via a variable I hardcoded; same results for both methods Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 29, 2010 Report Share Posted January 29, 2010 The attached worked for me. Whatever category you want just put it in the UI to test. After it adds it then it automatically selects it. I would put a long delay after you click add before you do anything else.groneg2.ubot Quote Link to post Share on other sites
groneg 0 Posted January 29, 2010 Author Report Share Posted January 29, 2010 The attached worked for me. Whatever category you want just put it in the UI to test. After it adds it then it automatically selects it. I would put a long delay after you click add before you do anything else. I'll give it a try. Thank you! Quote Link to post Share on other sites
candres79 0 Posted August 18, 2012 Report Share Posted August 18, 2012 Can you Pm me this? Quote Link to post Share on other sites
winincome 3 Posted August 19, 2012 Report Share Posted August 19, 2012 this works for me in ubot 4 define CreateCategory(#postingCategory) { LoginToSite() navigate("http://{#site}/wp-admin/edit-tags.php?taxonomy=category", "Wait") wait for browser event("Page Loaded", #waitForElementWaitTime) wait for element(<name="submit">, "", "Appear") change attribute(<id="tag-name">, "value", #postingCategory) set(#sluggedSiteKeyword, $change text casing($replace(#postingCategory, " ", "-"), "Lower Case"), "Global") change attribute(<id="tag-slug">, "value", #sluggedSiteKeyword) click(<name="submit">, "Left Click", "No") wait for browser event("Page Loaded", #waitForElementWaitTime) wait for element(<name="submit">, #waitForElementWaitTime, "Appear")} can't remember why I put two waits at the end 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.