sheiku Posted March 30, 2017 Posted March 30, 2017 Hi, sorry for my english I try to automate an form copy and fill at my work office. I try to cope some employ data ( first name , phone , adress) from a form but at every emply the ID or name of the control is changing or different ( some time the id="uid-ctrl-7" is id="uid-ctrl-10 or id="uid-ctrl-22 so on..". The only constant atribute is the CLASS of the element. But i canot copy the value of the filed based of the class. I tried various ecample using get collection for the div or watever ...but no succes. Can you help me with a sollution ? Thank you <input value="Luigi Sandero" id="uid-ctrl-7" data-field="firstname" data-selenium-test="property-input-firstname" type="text" class="form-control private-form__control private-form__control--inline isInline" data-reactid=".0.0.2.0.1.0.0.1.1.0.0.0.$/=10=2$Properties.$Properties.0.$=11.0.1.2.$firstname.1"> Thank you all for the great forum
sheiku Posted March 31, 2017 Author Posted March 31, 2017 i came with my test. It is not working.. i tried various examples as the following: Local $oIE = _IECreate ("https://app.hubspot.com/sales/3024788/contact/7801/") $tags = $oIE.document.GetElementsByTagName("div") For $tag in $tags $class_value = $tag.className("class") If $class_value = "form-control private-form__control private-form__control--inline isInline" Then MsgBox(0, "i founs ", "the class ") EndIf Next note: the class : form-control private-form__control private-form__control--inline isInline is the only one atribute who is not changing when i switch the page to another customer even i have same form fields i have to copy values from. Regards
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now