I am currently working on an automation project.
Mainly everything is coded in powershell as the project involve AD, Exchange etc.
Last part involves integration to a website to fill a form. I have used document.getElementByID() and everything is working perfectly, but when I click the last button: Approve a popup shows up:
Window text: Message from webpage
Text: Are you sure?
Buttons: OK, Cancel
My question is, how can I answer a Messagebox generated by website?
I've looked through the DOM Explorer but can only find the Approve button, no child elements or anything.
Any help would be appreciated.
thanks DavidG, i figured it was all i java.
Found my way through the code and got i all working by simply ignoring the popup message and go directly to next step.
Related
I'm a WPF developer, i have tecknet wireless mouse with me, and it have two extra buttons.
when i click on them it navigates to-fro from history in browser.
Interestingly, it also works on Windows Explorer, Microsoft Outlook and VisualStudio. Means i can go to previously visited files or location by one button and can come to current by another button.
I tried to find, how they implement this one in their driver, so far no luck. If you guys know about this, share the information. I will use it in my next application.
Thanks,
i am asking the same question that many have posted here, but i have gone through almost all the posts and didn't get what am looking for.
my question is how can i create a plugin for IE that creates a tool bar with a button and when user clicks the button, a small popup window comes where he can sign in to our website.
as i am new in the concept, have some doubts..is plugins developed as windows application?
i have tried the sample codes from many sites but getting errors when building the solution. can anyone explain in detail how to get my job done?can we do it using c# in .net?
I am developing a winform app which is controlling a website. On click of a button in winform app i want to fill a form, click the submit button on the web page upon which a new page will open , on that page i have to click on a link.
How to achieve this. i have tried many things but did not got any proper solution
If you're looking for a web automation tool, use Watin. It allows you to automate via code the opening of a browser, the clicking of buttons, and the fillout of form fields. However, that is more of a testing library.
Honestly though, your choice of solution sounds odd. You're trying to get a client application to make requests through a web page, instead of directly requesting whatever resource yourself from the client application. It's hard to give you a direct solution without a good understanding of the problem space.
I've a very specific question:
How can I click in certain buttons on a web page?
Without that thing of coordinates. =D
What I really want, is a script that search for a Button (or more) with specific name and clicks it.
Imagine:
You open your browser and go to google page, than you run the script and, for example, it clicks the Search button.
If possible, I want a answer wich uses java or C#.
Thanks in advance for reading this,
and sorry for my bad english.
Edit:
Ok. Assuming that I'll use WatiN, can you rapidly explain how do I "put" this on my c# prog?
I want WatiN to be running on a button_click event. Like: When you enter the URL on my prog and press "OK" the prog will click that especific button that I've told you before.
Sorry if I've messed it up, I'me a truly noob with great ideas =s
For .NET, WatiN will do what you want. In fact, the very first example on the home page, shows you how to search google.
I WatiN all the time for screen scraping web sites: http://watin.sourceforge.net/
I'm developing an application in C# using visual web developer. I'm displaying some text for reading and I want the user to be able to select a word or fragment, and then right click it to display a customized menu (One that has for example define, search, show grammar...). I
I don't know how to do it. I'm fairly new to the .Net
Thanks!
You have to do that entirely on the client-side, in JavaScript.
Note that it's considered a bad idea to take over right-click, which the user has the right to expect will work the same no matter which application they are using.