Coded user interface - unable to identify html controls on Wpfbrowser

I am new to CodedUI and C #.

I am trying to automate a wpf application that has a WPF browser in it. So basically this is a WPF container with html content inside. I created a similar sample small application and shared it here. This application opens the amazon.in website at wpfwindow.

WPF Browser Application

My problem is that the coded user interface cannot correctly identify HTML controls such as Buttons, Text Input Fields.

Below is the main image from the WPF browser application [Link I shared). Here you can see the blue square box in the upper left corner. The coded user interface identifies that there is a search button in this area.

The bottom of the image is on the amazon website in the IE browser, where the encoded ui correctly types / identifies the Go search button.

Does this mean that I cannot automate WPFBrowser applications using an encoded user interface?

Can someone tell me what to do to correctly identify ui-encoded buttons

enter image description here

+4
source share
2 answers

, .

+1

, CodedUI , , .

, CodedUI.

: , WPF , , WPF.

: , . , CodedUI , , -. WPF. , , WPF, , , , .

+1

Source: https://habr.com/ru/post/1662312/


All Articles