Jump to content
UBot Underground

How Do You Easily Work With Javascript Elements?


Recommended Posts

So I'm trying to automate this site... http://redbubble.com.

Everything is fine until after I upload my image.

 

On redbubble you can upload one image and they put it on like 20 products. The issue is when it adds the image to all the products you can't easily click on them.

I've tried everything, changing user agents, etc... nothing is working! 

 

I've created a demo account for you to use to see what I'm talking about.

 

Login here: https://www.redbubble.com/auth/login

 

Username: ubotdemo

Password: ubotdemo123

 

Then go here: http://www.redbubble.com/portfolio/images/new?ref=account-nav-dropdown 

 

...and upload any .png image.

 

Once the image uploads you can see all the products displayed as thumbnails:

 

 

https://drive.google.com/file/d/0Bxb6iZreL5R1eEZYd0Q3MVRPdmM/view?usp=sharing

 

I can't figure out hot to click on the "Edit" button under each thumbnail. When you click that button, all of that products options open up...

 

(Tee shirt options opened up after button click)

https://drive.google.com/file/d/0Bxb6iZreL5R1V201ZVpmeHBHSFU/view?usp=sharing

 

 

I need to be able to click on the edit button to get these options to open up.

But, then I need to be able to change the color and move that slider to another percentage.

 

I for the life of me can't figure this one out. Maybe you guys can help.

 

Let me know if you need more info or I can clarify in any way.

 

Thanks,

Chris

 

 

 

Link to post
Share on other sites

i use ubot v5.9.8 and chrome v39 it working

 

see image

 

Weird, I'm using the same thing Ubot 5.9.8 & Chrome v39 and I can't click or interact with anything once I upload an image to the site.

 

Have any idea what would be causing this?

Link to post
Share on other sites

code

navigate("http://www.redbubble.com/portfolio/images/new?ref=account-nav-dropdown%C2%A0","Wait")
change file field(<id="select-image-single">,"C:\\Users\\Apichai\\Pictures\\2015-09-02_16-05-34.png")
click($element offset(<class="rb-button edit-product">,0),"Left Click","No")
Link to post
Share on other sites

 

code

navigate("http://www.redbubble.com/portfolio/images/new?ref=account-nav-dropdown%C2%A0","Wait")
change file field(<id="select-image-single">,"C:\\Users\\Apichai\\Pictures\\2015-09-02_16-05-34.png")
click($element offset(<class="rb-button edit-product">,0),"Left Click","No")

 

 

 

click($element offset(<class="rb-button edit-product">,0),"Left Click","No")

 

That's the part that isnt working for me.

 

Anything I try to click on or right click on after I upload the image wont work.

I need to be able to click the edit button, change shirt color, and move the slider to a certain percentage.

 

I can't click on or manipulate any of those.

 

Does clicking on any of those work for you?

Edited by candres79
Link to post
Share on other sites

@prash, I am working on this with Candres.  Can you make a screen capture video demonstrating?  Currently we can't get it to work as you are on your end.  thx.

I know why.

Sometimes it works But sometimes it does not work

I think the problem is caused by Ubot not load pages.

Please report this problem to Ubot support.

Link to post
Share on other sites

I know why.

Sometimes it works But sometimes it does not work

I think the problem is caused by Ubot not load pages.

Please report this problem to Ubot support.

 

 

Did it stop working for you too?

 

I just put in a support ticket, I'm waiting for them to get back with me.

Link to post
Share on other sites

Same here,

first time was good everything worked

but when i run for second time, it didnt work.

 

This problem is the same problem that i am facing on the other site. (with javascript element)

 

I am thinking to try with Exbrowser plugin, but right now i dont have it

Link to post
Share on other sites

change file field(<id="select-image-single">,"PATH TO IMAGE HERE")
comment("offset 0-16 as there are 17 options of edit
0 - Clothing
1 - Mens Graphic T-shirts
2 - Stickers
3 - Phone cases and skins
4 - Prints, cards and posters
5 - Pillows and totes
6 - Pouches laptop skins and sleeves
7 - Duvets
8 - Mugs
9 - Travel Mugs
10 - Leggings
11 - Pencil Skirts
12 - Scarves
13 - Tablet cases and skins
14 - Drawstring Bags
15 - Spiral notebooks
16 - Hardcover Journals")
click($element offset(<class="rb-button edit-product">,0),"Left Click","No")
comment("Front")
click($element offset(<class="label-wrap">,0),"Left Click","No")
comment("Back")
click($element offset(<class="label-wrap">,1),"Left Click","No")
comment("Colors")
clear list(%colors)
add list to list(%colors,$list from text($scrape attribute(<class=w"work-config-color-option body_color_*">,"data-color"),$new line),"Delete","Global")
set(#color,"silver","Global")
click(<style="background-color: #e0e1dd;">,"Left Click","No")
comment("Apply changes")
click($element offset(<class="rb-button red apply-changes">,0),"Left Click","No")

Link to post
Share on other sites

Nope Still not working for me. I tried running this compiled out into a bot too... no luck!
 
Nothing happens when you run it. I made a quick video to show you what's goin on...

 

Edited by candres79
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...