How can i make it where you click button 1 and on a page like www.youtube.com/shanedawsontv in webbrowser1 it will click the text Add as friend cause they don't have ids for that please help
You'll likely have to use the WebBrowser Control's DocumentText Property to get the HTML of the page so that you can parse the required HTTP request required to add the user as a friend. That's likely to be no easy task with YouTube as it will probably be using hidden fields and Javascript (from a separate .js file) to make the request.
Related
Tried to handle the pop-up many ways, need clarity do we need to change the body. because when the pop-up is displayed the new class is adding it is as below.
https://i.stack.imgur.com/jQC2B.png
The actual Pop-up class is as below. there is no close button for this pop-up.
https://i.stack.imgur.com/e1ZWc.png
-By manual user can close the pop-up when user click any where in the page. When i tried click any where using automation it is displaying as element not found
Here is the code i user to handle the pop-up i am so confused how to handle the pop-up
https://i.stack.imgur.com/ibf0j.png
Thanks for help in advance
please try to check the javascript from where this pop-up is executing and try to disable display property by setting it to none
Try to remove this div class name "_355Q0" from DOM. by using this javascript query.
var myobj = document.querySelector("._355Q0")
myobj.remove();
I am creating an application in that it gets data from the web view that opens from the page and when the user enters data and then save into that then it saves data into the database using c#.
I have to try to make a local Html webpage and on click of button try to get the value of Html page content but when I try with that I am not able to do that.
I also try with the hosted web URL but can't do that.
I am using .Net standard 2.0.3
Can anyone look into this and suggest to me what should I to do to achieve that?
I am trying to fillout particular form over webpage using HTMLagility pack, but I am stuck as How to click the button on form via HTMLAgility. I have seen other option like HTMLElement, but I am not much into it.
below is link where one can have look
http://www.moneycontrol.com/india/fnoquote/acc/ACC
in this page, I am able to select "STOCK" dropdown menu and Expiry dropdown by setting attributes. But I need to click the "SEARCH FUTURES" button.
Any help of kind will be absolutely thankful.
All code should be explan in vb.net requested
You can't use the Html Agility Pack to click to click a button, nor do you want to. The easiest way to achieve what you are tying to do is install a tool that will view HTTP post parameters. I use fiddler, and you can download it here: http://www.telerik.com/download/fiddler. When you click the "Search Futures" button, here is the POST data that is sent:
instrument_type=FUTSTK&post_flag=true&see_all=&sc_id=MPS&short_name=Adani+Ports&user_sel_price=&stock_code=MPS&sel_exp_date=2014-02-26
If you look closery you can see "Adani Ports" and "2014-02-26". Those are the values from the the Stock and Expiry Date drop downs. Modify those two values to whatever you want, then send an HTTP POST from your app containing that post data.
I've pulled down a webpage using a WebRequest object, and need to parse it, but first I need to render it since there is scripting on the page. I don't want to use the WebBrowser control because that forces me to jump out of my current function to the DocumentCompleted event, and "lose my place" (so to speak). Is there any way for me to pull down a URL using a WebRequest object and have the page rendered but still stay in my function? I considered the HTML Agility Pack but don't believe it's any good for my purposes because that won't render the scripting.
in the spirt of ignoring the question :-) you should be able to use webbrowser control without loosing you place
see http://www.codeproject.com/Articles/50544/Using-the-WebBrowser-Control-in-ASP-NET#funct
I would like to hide the Edit property option form ECB of ducument Library items in SP2010 or capture the click and redirect to my own aspx page. Is it possible? Please help
Thanks
aYus
Customizing Edit Control Block is not possible using Custom Action. Couple of ways you can get your requirement done.
Option 1 : Use custom Javascript and get this solved.
Option 2 : Use SharePoint Designer or Object Model code & change the Default Edit Form URL, change the Edit form to point to page of your choice.
You can refer these links to get more information on how to achive it using Javascripts
Link1
Link2
Link3