Forum Discussion

sanjayram's avatar
sanjayram
Contributor
11 months ago

Need code expression for copy and paste

Hi, 

     I using a web application which can't able get Xpath need code expression for copy and paste

  • after you ^c (copy) you can set a variable to the copied string by using "set variable" "Code expression" and for value use "sys.clipboard"

     

    now you can use this variable as you please

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    after you ^c (copy) you can set a variable to the copied string by using "set variable" "Code expression" and for value use "sys.clipboard"

     

    now you can use this variable as you please

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I don't know what technology your web applications uses, but you might be able to use Edge/Chrome DevTools to locate the objects XPath, and use it in TC.

    Key ^c is copy and ^v is paste.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    What do you mean by "need code expression for copy and paste"?

  • Hi rraghvani  I'm using web application which we cannot able to get xpath or i can't able to locate any object, i copy and value through keys function by ^c, and i want to save the copied value in a file or i need to paste in other textbox