Hello, and thank you for checking out my help topic. I am currently new to the Macro Scheduler world, and have been using MS for a number of different tasks, but one task in-particular is giving me a serious headache. I am currently trying to add subdomains, and their corresponding directory locations to my Hosting Provider.
I.E. - Create a Subdomain called "locations" In one form field, and then clicking over to another form field beside it, entering in "150milehouse/region/mynetpassport.com"
The thing is, when I do this WebRecorder/MS picks up the WRONG button used to ADD the subdomain. I have looked up other solutions and I have tried digging deeper into the source code to find an ID or name for the button but i can't seem to find one. So what happens is WebRecorder/MS clicks the wrong "ADD" button and brings me to a different screen then I want.
Can someone please offer some sort of assistance to my problem? I have completed this task before so I know it can be done, I just can't remember what I did the last time I programmed this macro! I have tried Tab and Enter commands and neither worked. Thanks in advance and hopefully my problem gets solved!
Code Reference:
IECreate>IE[0]
IENavigate>%IE[0]%,https://www2.netfirms.com/controlpanel/ ... .0/,ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
IEClickTag>%IE[0]%,{""},{"login"},{"INPUT"},{"CLASSNAME"},{"form-control"},ie_res
IEFormFill>%IE[0]%,{""},{"login"},{"credential_0"},{"*****"},0,ie_res
IEFormFill>%IE[0]%,{""},{"login"},{"credential_1"},{"*****"},0,ie_res
IEFormFill>%IE[0]%,{""},{"login"},{"credential_1"},{"*****},0,ie_res
IEClickTag>%IE[0]%,{""},{"login"},{"BUTTON"},{"ID"},{"controlPanelLogin"},ie_res
IEFormSubmit>%IE[0]%,{""},{"login"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>30.00
UIClick>{"Netfirms - DomainCentral - Internet Explorer"},{"Search your current domains"}
UISetValue>{"Netfirms - DomainCentral - Internet Explorer"},{"Search your current domains"},{"mynetpassport.com"}
Wait>30.00
UIClick>{"Netfirms - DomainCentral - Internet Explorer"},{"Search your current domains"}
Press Enter
Wait>30.00
UIClick>{"Netfirms - DomainCentral - Internet Explorer"},{"mynetpassport.com"}
Wait>30.00
IEWaitDocumentComplete>%IE[0]%,ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>30.00
UIClick>{"Netfirms - DomainCentral - Internet Explorer"},{"mynetpassport.com"}
Wait>30.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"mynetpassport.com"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
UIClick>{"Netfirms - DomainCentral - Internet Explorer"},{"Subdomains"}
Wait>30.00
IEWaitDocumentComplete>%IE[2]%,ie_res
Wait>30.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Subdomains"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_alias"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_alias"},{"100milehouse"},0,ie_res
Wait>0.10
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_dir"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_dir"},{"/100milehouse/region/mynetpassport.com"},0,ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>60.00
IEClickTag>%IE[2]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[2]%,ie_res
Wait>60.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Subdomains"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_alias"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_alias"},{"108milehouse"},0,ie_res
Wait>0.10
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_dir"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_dir"},{"/108milehouse/region/mynetpassport.com"},0,ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>60.00
IEClickTag>%IE[2]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[2]%,ie_res
Wait>60.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Subdomains"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_alias"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_alias"},{"108mileranch"},0,ie_res
Wait>0.10
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_dir"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_dir"},{"/108mileranch/region/mynetpassport.com"},0,ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>60.00
IEClickTag>%IE[2]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[2]%,ie_res
Wait>60.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Subdomains"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_alias"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_alias"},{"150milehouse"},0,ie_res
Wait>0.10
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_dir"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_dir"},{"/150milehouse/region/mynetpassport.com"},0,ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>60.00
IEClickTag>%IE[2]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[2]%,ie_res
Wait>60.00
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Subdomains"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_alias"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_alias"},{"abbey"},0,ie_res
Wait>0.10
IEClickTag>%IE[0]%,{""},{""},{"INPUT"},{"ID"},{"mynetpassport.com_dir"},ie_res
IEFormFill>%IE[0]%,{""},{""},{"mynetpassport.com_dir"},{"/abbey/region/mynetpassport.com"},0,ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Add"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>60.00
Form Automation
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Form Automation
I'm afraid it's nigh on impossible to help by looking at the code. I'd need to see the page - the html at the very least - but ideally be able to access the page fully to be able to figure it out.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Newbie
- Posts: 5
- Joined: Wed May 11, 2016 9:45 pm
Re: Form Automation
Thanks for the reply Marcus! My partner and I found a solution so no need to worry! I will remember this for future reference.
If anyone is curious to how we solved the problem, we just simply changed a setting to make one of the buttons grayed out or "unclickable". Easy solve!
If anyone is curious to how we solved the problem, we just simply changed a setting to make one of the buttons grayed out or "unclickable". Easy solve!