|
-
Mar 19th, 2018, 05:12 PM
#1
Thread Starter
New Member
mouse click
I am using vb.net how can i make mouse click on website textbox
its information is these
<input type="text" id="username" class="input4"
autocomplete="off" name="username" value="" required=""
data-required="" data-pattern="^[a-zA-Z][a-zA-Z0-9]+$"
data-minlenght="6" data-maxlenght="12"
onkeyup="clearNonAlphaNum(this)">
please help me
Last edited by sh4sh4; Mar 19th, 2018 at 05:16 PM.
-
Mar 19th, 2018, 05:45 PM
#2
Re: mouse click
Why do you care about a click on a text box? What are you actually trying to achieve? It's more likely that what you care about is when that text box gets focus, which can happen via the keyboard as well as by the mouse.
-
Mar 19th, 2018, 06:25 PM
#3
Thread Starter
New Member
Re: mouse click
 Originally Posted by jmcilhinney
Why do you care about a click on a text box? What are you actually trying to achieve? It's more likely that what you care about is when that text box gets focus, which can happen via the keyboard as well as by the mouse.
There is two id with the same name
how can i select ?
<input type="text" id="username" class="input4"
autocomplete="off" name="username" value="" required=""
data-required="" data-pattern="^[a-zA-Z][a-zA-Z0-9]+$"
data-minlenght="6" data-maxlenght="12"
onkeyup="clearNonAlphaNum(this)">
<input name="username" id="username" type="text" class="user" autocomplete="off"
placeholder="Kullanici Adi">
-
Mar 19th, 2018, 06:32 PM
#4
Re: mouse click
 Originally Posted by sh4sh4
There is two id with the same name
how can i select ?
That seems unrelated to your original post. Please provide a FULL and CLEAR explanation of the problem. Don't try to get away with posting as few words as possible. The better description you provide of what you're actually trying to achieve, the better chance that we can provide the best means to achieve it. If we have to keep trying to drag the relevant information out of you, we may tire of it and give up before you get the help you want. You need to help us to help you.
-
Mar 19th, 2018, 07:04 PM
#5
Thread Starter
New Member
Re: mouse click
 Originally Posted by jmcilhinney
That seems unrelated to your original post. Please provide a FULL and CLEAR explanation of the problem. Don't try to get away with posting as few words as possible. The better description you provide of what you're actually trying to achieve, the better chance that we can provide the best means to achieve it. If we have to keep trying to drag the relevant information out of you, we may tire of it and give up before you get the help you want. You need to help us to help you.
on the website there is samw id textbox but when i am writing
WebBrowser1.Document.All("username").SetAttribute("value", username)
its writen different textboxx with same id "username"
<input name="username" id="username" type="text" class="user" autocomplete="off"
placeholder="Kullanici Adi">
i need to reach second field but i couldnt reach
<input type="text" id="username" class="input4"
autocomplete="off" name="username" value="" required=""
data-required="" data-pattern="^[a-zA-Z][a-zA-Z0-9]+$"
data-minlenght="6" data-maxlenght="12"
onkeyup="clearNonAlphaNum(this)">
please help me
-
Mar 19th, 2018, 07:33 PM
#6
Re: mouse click
And what does that have to do with mouse clicks? Anything? It seems unrelated.
This seems to be simply a repeat of a question that I answered previously, possibly here or possibly elsewhere. I said then that you should simply get those elements into a collection and then take the second one. You seem to have made no attempt to do that at all. A few minutes of using the Help menu and reading the relevant documentation would have shown you that that All property is type HtmlElementCollection and that type has a GetElementsByName method, that will return a collection of elements with the specified name (name, NOT id). That's your collection, assuming that no other elements have that same name.
-
Mar 19th, 2018, 07:41 PM
#7
Thread Starter
New Member
Re: mouse click
How will i do that?
pleaese help me
-
Mar 19th, 2018, 07:48 PM
#8
Re: mouse click
I already did help you. You seem to be asking me to write your code for you. I'm not willing to do that. This is fairly simple stuff: call a method to get a collection and get an item from that collection. You should be able to at least make an attempt at that. If you're not willing to at least make an effort, I'm not willing to help further. If you are willing to make an effort, let's see it. You can wait to see if someone else will write the code for you if that's what you want, but it won't be me.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|