Hi
This is my first post here. I am facing a problem and did not find any solution.
I making application with vb.net who fills contact forms of different websites. I can get html code of tag like this
<input type="text" name="contact_name" id="name" required="required" placeholder="Your Full Name" data-required="Name is required" class="first-child last-child">.
Is there any way to find xpath/selector pragmatically so that i can work with this tag later. Different contact forms have differnet inputs with different names and attributes. I using visual basic dot Net.
Appologise for bad english.
Thanks!
How to get xpath/css selector programmatically wxhile i have html code of tag.
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: How to get xpath/css selector programaticaly while i have html code of tag.
Hi razi,
I deleted your similar post in the Command Line and Scripting Interface forum and I may move this post to a different forum once it becomes more clear what you are actually intending to do.
Are you saying that you are already extracting the raw HTML of the web page using your VB.NET code, and you would like to be able to convert this to an iMacros TAG command for use in a macro?
I deleted your similar post in the Command Line and Scripting Interface forum and I may move this post to a different forum once it becomes more clear what you are actually intending to do.
Please help me (and anyone else reading this topic) to understand better the "what and why" of your request.razi wrote: ↑Mon Sep 02, 2019 10:14 amI can get html code of tag like thisIs there any way to find xpath/selector pragmatically so that i can work with this tag later.Code: Select all
<input type="text" name="contact_name" id="name" required="required" placeholder="Your Full Name" data-required="Name is required" class="first-child last-child">
Are you saying that you are already extracting the raw HTML of the web page using your VB.NET code, and you would like to be able to convert this to an iMacros TAG command for use in a macro?
Regards,
Tom, iMacros Support
Tom, iMacros Support
Re: How to get xpath/css selector programmatically wxhile i have html code of tag.
I don,t want to convert it into imacro code. I just want to generate xpath of element programaticaly. Many times i get html tags code and i have to perform action on some of them. So if conditions meet then actions performed on those elements for this purpose i need to generate xpath programaticaly.
Thanks!
Thanks!
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: How to get xpath/css selector programmatically wxhile i have html code of tag.
Okay, so it sounds like your question is not specifically related to iMacros then. You might want to consider doing a general web search on XPATH as you may find an answer quicker that way.
Regards,
Tom, iMacros Support
Tom, iMacros Support