XaelloNegative Posted January 19, 2018 Posted January 19, 2018 Hi team, Looking at the code that I have... $ocalldocs = _IEGetObjById($newRl, "ct100_Some_text") $scalldocs = _IEFormElementGetValue($ocalldocs) ControlSetText("My Tool", "", "[CLASS:Edit; INSTANCE:5]", $scalldocs) the div ID "ct100_Some_text" contains paragraphs that I want to get. However as I transfer the data to [CLASS:Edit; INSTANCE:5], it seems to disregard the many @crlfs of the said paragraph. Is there a way to get this with the proper carriage returns and line feeds? or the option that I have left would be _IEHeadInsertEventScript? Any ideas would help. Thank you so much. ~XN~ ~XN~
Danp2 Posted January 19, 2018 Posted January 19, 2018 Have you tried using ControlSend instead of ControlSetText? Latest Webdriver UDF Release Webdriver Wiki FAQs
XaelloNegative Posted January 19, 2018 Author Posted January 19, 2018 Just now, Danp2 said: Have you tried using ControlSend instead of ControlSetText? I actually did like an hour ago. Doesn't work. ~XN~
Danp2 Posted January 19, 2018 Posted January 19, 2018 Did you try with the "raw" option? Show your code. Also, have you tried manually copying and pasting the desired text to be sure the issue isn't with the destination app? Latest Webdriver UDF Release Webdriver Wiki FAQs
XaelloNegative Posted January 19, 2018 Author Posted January 19, 2018 The above mentioned code is actually the code that im working with. 3 of those to be exact. Im not particularly familiar with the "raw" option. does it have something to do with _ieformelementgetvalue? copying and pasting was already tested, just now. it is moving the paragraph together with crlfs ~XN~
Danp2 Posted January 19, 2018 Posted January 19, 2018 Read the help file entry for ControlSend to learn more about the option to send the data "raw". You should also inspect the contents of $scalldocs to be sure that it contains the desired data. Latest Webdriver UDF Release Webdriver Wiki FAQs
XaelloNegative Posted January 19, 2018 Author Posted January 19, 2018 Ill try to work it with the raw flag. $scalldocs returns no crlf. this is because the information its getting is from and ID inside an ie div. ill keep this thread posted for updates. if none works, ill have no choice but to use _IEHeadInsertEventScript and insert a decent amount of javascript to get it done. Kudos Danp2 ~XN~
Danp2 Posted January 19, 2018 Posted January 19, 2018 I feel like you are sending us on a wild goose chase. As posted, it would appear that the initial issue was with ControlSetText. You mentioned _IEHeadInsertEventScript in the OP, but it wasn't clear to me why this was even brought up. Now it sounds like the issue is that $scalldocs contains the wrong information. So, it sounds like the issue is really with this line -- $scalldocs = _IEFormElementGetValue($ocalldocs) which makes sense because the div is probably a wrapper for the actual elements holding the desired text. Have you tried grabbing the innertext from the div to see if that gives you the desired contents? Latest Webdriver UDF Release Webdriver Wiki FAQs
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