Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 05:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



js button

Discussion on js button within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 49
Received Thanks: 1
js button

Hey guys, I'm coding bot for local marketplace

I made code to login and to click on this button


Next I want to do is to click on this button but that button doesn't have ID, so how can I do that?

Thanks in advice!
Shuwe is offline  
Old 10/15/2018, 17:30   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Instead of relying on button clicks, you can send requests directly. Capture the request in the developer tools of your browser and implement it in your application


Aside from that, you can use XPath to create complex matching patterns for finding your buttons. Match other things instead of just the ID-Tag. CSS-Classes, different additonal attributes, location in the DOM, etc.
florian0 is offline  
Old 10/16/2018, 12:04   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 49
Received Thanks: 1
Quote:
Originally Posted by florian0 View Post
Instead of relying on button clicks, you can send requests directly. Capture the request in the developer tools of your browser and implement it in your application


Aside from that, you can use XPath to create complex matching patterns for finding your buttons. Match other things instead of just the ID-Tag. CSS-Classes, different additonal attributes, location in the DOM, etc.
Button do this on click

Code:
onclick=
"$('#vrstaobjave').hide();
$('#staprodajete').show();
sredi_div('prodaja');
$('#kategorija_sug').focus();
$('#zasto').hide();"
so how do i find this button by c#
Shuwe is offline  
Old 10/16/2018, 13:23   #4
 
chronicles666's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 37
Received Thanks: 9
It doesn't matter what the button does when clicked. You only need to mimic the communication between a browser and the website server. Try to find out what network request is made (if any) after you click that button. I signed up on that page, but it asks me to verify my phone number before I'm allowed to submit an offer (because I think that's what you want to automate), so I can't really inspect the request for you.
chronicles666 is offline  
Old 10/18/2018, 22:37   #5



 
Serraniel's Avatar
 
elite*gold: 0
The Black Market: 205/1/0
Join Date: May 2010
Posts: 6,853
Received Thanks: 5,106
Arrow C/C++ -> .NET Languages

#moved
Serraniel is offline  
Reply


Similar Threads Similar Threads
[B] Push Button [S] 10 e*gold/Button; 25 e*g/psd+Button
09/20/2013 - elite*gold Trading - 4 Replies
Moin, Hier könnt ihr folgenden Push Button kaufen: http://i.epvpimg.com/YlrYe.jpg Pro Button wären das 10e*g, pro Button mit .psd dazu 25e*g. Wenn ihr einen Button kaufen wollt, schreibt mir eine PN, damit ich den Namen ändern kann, alles hochladen kann und euch dann per Treasure schicken kann. ;) Schrift kann auch geändert werden. Dazu einfach in der PN schreiben, welche Schrift ihr haben wollt^^
Item-Shop Lager Button Zum Normalen lager button machen? DE
01/12/2011 - Metin2 - 6 Replies
Moin, seid heute gib es ja im inventar den IS button wo man mit sein lager öffnen kann,könnte man den auch zu einem Normalen lager Button Machen?
WarRock statt KOREANISCHE BUTTON --> Englische BUTTON
02/26/2010 - WarRock - 6 Replies
Bin mir nicht sicher ob es diesen Thread schon gibt aber hab bis jetzt nichts gesehen hier. Funktionen Für WarRock Korea Koreanische Schriften (Button) weg und englische Schriften (Button) hin Anleitung



All times are GMT +1. The time now is 05:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.