cancel
Showing results for 
Search instead for 
Did you mean: 

Attach to Chinese Portal based on Chinese Window titel

PavelKrál
Level 5
Hi,

i have an issue where im not able to attach to the Webportal. Windows title is in Chinese and it seems BluePrism is not able to attach such window.

If i launch the webpage and i use WIN32 mode to spy whole IE Frame. i see the window text is in Chinese.
If i detach from the IE and try to attach again based on this window text i got from previous step.. its not working.

Could it be that BP has issues to attach windows in Chinese?
Our system is setup to use English (BP, Windows, everything) but this portal has no possibility to switch to EN.

------------------------------
Pavel Král
RPA Specialist
MANN+HUMMEL Service s.r.o
------------------------------
4 REPLIES 4

nobu
Staff
Staff
Hi Pavel 

I noticed that there is an problem in Attach action with 2 byte characters (e.g., Chinese, Japanese etc). Until the problem is fixed, please take one of the following approaches. 

  1. Set only English part in Windows title if applicable (e.g., if the title was "World 中国", the parameter can be "World*")
  2. Open IE with English title page and attach to IE. Then, move to the Chinese title page.
  3. Use other parameters without Windows Title (e.g, Process Name = "iexplore", Child Index = 1) in Navigation stage.
    17231.png
Regards,

Nobu



------------------------------
Nobuhiro Tokushige
Product Specialist
Blue Prism
Australia/Sydney
------------------------------

Hi,

thanks for the reply., unfortunately...
1) English part is not working as well.. dont know why
2) Could probably work, but its not following our VBO creation/actions separation rules
3) We are using more IE windows, this would not work during the development or debuging when you are testing only one part of the process with 1 IE window(this would be index 0), maybe to create a dynamic childindex calculator with increment if not able to attach, this probably would work.

Still as mentioned above, im using the method of attaching to window based on Process ID. In this case the Chinese is working. You can get the Chinese windows title from the Utility - Environment (Get Memory Stats), but it needs to be modified, then filter out the right Process ID based on the windows title. There is no issue with Chinese Characters.

------------------------------
Pavel Král
RPA Specialist
MANN+HUMMEL Service s.r.o
------------------------------

Hi Pavel,

Thank you for sharing your idea.
I like the idea because it flexibly works under the other conditions. I would take your approach.

Regards,

Nobu


------------------------------
Nobuhiro Tokushige
Product Specialist
Blue Prism
Australia/Sydney
------------------------------

Hi Pavel

The way you mentioned works. I did the similar solution to attach some weird title.

I use this code below to store information to BP collection and check which row has the target title. If you find out which row is the target and you can simply extract the Process ID from the same row.

Dim p As System.Diagnostics.ProcessDim p As System.Diagnostics.ProcessDim row as DataRowProcessesCol.Columns.Add("processname",GetType(String))ProcessesCol.Columns.Add("title",GetType(String))ProcessesCol.Columns.Add("handle",GetType(String))ProcessesCol.Columns.Add("id",GetType(String))

For Each p In System.Diagnostics.Process.GetProcesses()
    If Not IntPtr.Zero.Equals(p.MainWindowHandle) Then   row = ProcessesCol.NewRow() row("processname") = p.ProcessName        row("title") = p.MainWindowTitle        row("handle") = p.MainWindowHandle row("id") = p.Id ProcessesCol.Rows.Add(row)    End IfNext

------------------------------
Chenglung Tsai
Consultant
Avanade
------------------------------