Jump to content
UBot Underground

Trouble selecting a class


Recommended Posts

Hi all,

Trying to setup a script for Facebook that will select and choose the appropriate date on the calendar when scheduling posts....Had it working until Facebok changed the Date/Time/Year and put it into a calendar.

 

It looks like <class="dayCell"> is where the date of the month changes, but not sure how to get the bot to change to the day I want from that.

It looks like <td class="dayCell">30</td> is what shows for the 30th of the month, but not sure how to replace the 30 with the date I want....

 

I tried this: change attribute(<class="dayCell selected">, "value", #Day)  but not working

 

Anybody know how to set this up?

 

This is the calendar I'm trying to manipulate: http://screencast.com/t/YE7wYZLP

 

thanks!

Edited by wouldjaball
Link to post
Share on other sites

Thank you Luis,

That works for that specific date, but when I try to put in variables it turns into division.

change attribute(<value=w"*/*/*">, "value", $divide($divide(12, #Day), 2013))

I'm sure it's an easy fix but how do I keep it from dividing?

say I wanted

change attribute(<value=w"*/*/*">, "value", "#month/#day/#year")

 

Thanks!

Link to post
Share on other sites
  • 3 weeks later...

hey, for the german site i use:

 

change attribute(<value=w"*.*.*">, "value", "#day.12.2013")

 

and it changes the date in the display correctly.

 

But if I click "schedule" it saves the old date . :huh:  Even if I click manually in the date-field and it opens: the old date (day) of today is marked. 

 

Anybody know how to set this up?

 

Thanks !!!  :wub:

Link to post
Share on other sites

hey, for the german site i use:

 

change attribute(<value=w"*.*.*">, "value", "#day.12.2013")

 

and it changes the date in the display correctly.

 

But if I click "schedule" it saves the old date . :huh:  Even if I click manually in the date-field and it opens: the old date (day) of today is marked. 

 

Anybody know how to set this up?

 

Thanks !!!  :wub:

 

ok... this works:

 

click($element offset(<name="future_dateIntlDisplay">, 0), "Left Click", "No")
wait(1)
click(<innertext=#day>, "Left Click", "No")
 

no change attribute, left click is better http://www.smileygarden.de/smilie/Schleifchen-Girls/smilie_girl_173.gif

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...