Jump to content



Photo

Exbrowser Click On Youtube Like

ExBrowser Click Youtube Like

  • Please log in to reply
7 replies to this topic

#1 allcapone1912

allcapone1912

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 145 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 04 June 2017 - 01:41 PM

How can I click on Youtube like(below video, not from comment)

 

Currently, I use Click by coordinate but it's not very good(different size, browser...)

 

Not sure why I am not available to click it, perhaps youtube use some java/script to block/hide - no sure

<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-opacity yt-uix-button-has-icon no-icon-markup like-button-renderer-like-button like-button-renderer-like-button-unclicked  yt-uix-post-anchor yt-uix-tooltip" type="button" onclick=";return false;" aria-label="like this video along with 16,215 other people" title="I like this" data-post-data="itct=CDwQpUEiEwiFt9n-_KTUAhVb5hwKHVtTBqwo-B0&amp;se=8pH38AERCAASDQoLTzN5ZGJJVW8wRVk%3D" data-force-position="true" data-position="bottomright" data-orientation="vertical" data-post-action="/service_ajax" data-tooltip-text="I like this" aria-labelledby="yt-uix-tooltip1124-arialabel">
<span class="yt-uix-button-content">16,215</span></button>

I've tried to click by class, title, type - without any success

 

Any idea how this can be clicked?



#2 TheMcD

TheMcD

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 160 posts
  • OS:Windows 7
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 04 June 2017 - 05:29 PM

Regarding the wonderful exBrowser, I just barely posted something that hopefully Dan can add. :)

It could solve a lot of things for many reasons like code changing on a site, etc. And it would solve your problem too.

* Think image recognition (that uBot can already do).

Here is the post:

http://network.ubots...er/#entry129274

#3 Varo

Varo

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 92 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 04 June 2017 - 08:08 PM

How can I click on Youtube like(below video, not from comment)

 

Currently, I use Click by coordinate but it's not very good(different size, browser...)

 

Not sure why I am not available to click it, perhaps youtube use some java/script to block/hide - no sure

<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-opacity yt-uix-button-has-icon no-icon-markup like-button-renderer-like-button like-button-renderer-like-button-unclicked  yt-uix-post-anchor yt-uix-tooltip" type="button" onclick=";return false;" aria-label="like this video along with 16,215 other people" title="I like this" data-post-data="itct=CDwQpUEiEwiFt9n-_KTUAhVb5hwKHVtTBqwo-B0&amp;se=8pH38AERCAASDQoLTzN5ZGJJVW8wRVk%3D" data-force-position="true" data-position="bottomright" data-orientation="vertical" data-post-action="/service_ajax" data-tooltip-text="I like this" aria-labelledby="yt-uix-tooltip1124-arialabel">
<span class="yt-uix-button-content">16,215</span></button>

I've tried to click by class, title, type - without any success

 

Any idea how this can be clicked?

 

it should be simple,

plugin command("ExBrowser.dll", "ExBrowser Click", "//button[@title=\'I like this\']")



#4 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3124 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 04 June 2017 - 11:26 PM

How can I click on Youtube like(below video, not from comment)

 

Currently, I use Click by coordinate but it's not very good(different size, browser...)

 

Not sure why I am not available to click it, perhaps youtube use some java/script to block/hide - no sure

<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-opacity yt-uix-button-has-icon no-icon-markup like-button-renderer-like-button like-button-renderer-like-button-unclicked  yt-uix-post-anchor yt-uix-tooltip" type="button" onclick=";return false;" aria-label="like this video along with 16,215 other people" title="I like this" data-post-data="itct=CDwQpUEiEwiFt9n-_KTUAhVb5hwKHVtTBqwo-B0&amp;se=8pH38AERCAASDQoLTzN5ZGJJVW8wRVk%3D" data-force-position="true" data-position="bottomright" data-orientation="vertical" data-post-action="/service_ajax" data-tooltip-text="I like this" aria-labelledby="yt-uix-tooltip1124-arialabel">
<span class="yt-uix-button-content">16,215</span></button>

I've tried to click by class, title, type - without any success

 

Any idea how this can be clicked?

 

It depends a little bit on the type of error you get. Check the EXB debug log to see the error message.

At the moment there are some cases where the click command might fail. If the element you want to click is hidden under some other stuff.
This will be fixed soon. The automation will be removed from the click command. Then you can move the element into the right position with other commands before you click it.

I tried to automate that process, but there are too many different possibilities, so it's not possible to do that automatically for every situation. So I will remove that code. 

 

Dan


Signature-JPG.jpg


#5 Marani

Marani

    Advanced Member

  • Community
  • PipPipPip
  • 293 posts
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 05 June 2017 - 01:32 AM

 

it should be simple,

plugin command("ExBrowser.dll", "ExBrowser Click", "//button[@title=\'I like this\']")

Does the job well.



#6 allcapone1912

allcapone1912

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 145 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 05 June 2017 - 12:35 PM

Does the job well.

Ive tried this one


 

it should be simple,

plugin command("ExBrowser.dll", "ExBrowser Click", "//button[@title=\'I like this\']")

I've tried this one

Not sure why but this simple command sometimes work, sometimes not working



#7 Varo

Varo

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 92 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 05 June 2017 - 02:55 PM

Ive tried this one


I've tried this one

Not sure why but this simple command sometimes work, sometimes not working

be sure to wait until everything loaded. Or wait for element displayed. 



#8 allcapone1912

allcapone1912

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 145 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 05 June 2017 - 03:20 PM

be sure to wait until everything loaded. Or wait for element displayed. 

Everything is loaded

Thank you for your reply

 

I assume there are some hidden script that creates problem to my bot







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users