Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Change property of object (WpfButton)
#1
Solved: 8 Years ago
Hi,
in my test I have a WpfButton where "enabled" property is setted to "false".

How can I change this property?

I have to try with "SetToProperty" but it not works.

Thanks for the support.
Reply
#2
Solved: 8 Years ago
I found a workaround.

I used this code:
Code:
WpfWindow("myApp").WpfEdit("txtComments").Set ""

Set WshShell = CreateObject("WScript.Shell")
wait 2
WshShell.SendKeys "{TAB}"
wait 1
WshShell.SendKeys "{TAB}"
wait 1
WshShell.SendKeys "{ENTER}"

I set the focus in a WpfEdit, I pressed two times the tabs button for move the focus in APPLY button, then I pressed ENTER.

Maybe someone helpful to someone.

Thanks a lot.
Reply
#3
Solved: 8 Years ago
Thanks for the question and eventual solution.
Kindly edit your first post to elaborate more on the question. Why were you trying to change the property?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,189 03-25-2021, 08:27 AM
Last Post: RB26578
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 12,050 02-18-2017, 04:20 AM
Last Post: alexwhite
Wink IE11 Crashes when User tires to capture an Object or Record a Screen in UFT 12.01 Baalaaji 1 2,905 06-11-2015, 06:41 PM
Last Post: venkatesh9032
  Uft 12 - Identification of Google Chrome Object's Property value as plain text teja2730 0 2,578 02-02-2015, 05:22 PM
Last Post: teja2730
  Upgraded QTP 11.0 to UFT 11.53, Object Index Properties are varying Raghava M 0 2,178 01-28-2015, 06:02 PM
Last Post: Raghava M

Forum Jump:


Users browsing this thread: 1 Guest(s)