Jump to content

phoving

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

phoving's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. @Danp2 I tested on an english windows, and got the same result. I also changed the region settings / dat / time format etc. all to Central US. You say you got the expected result. Is that: you got the same as I got, or do you get the "good" string? I do not understand how the webdriver can display the string correctly, but __WD_GET not.
  2. No special reason, but I think that has nothing to do with the issue I am experiencing. Calling _WD_Action instead has this result: __WD_Get: URL=HTTP://127.0.0.1:4444/session/5b32358c-5a45-4e34-a370-0a6eceae403d/title 1571289885717 webdriver::server DEBUG -> GET /session/5b32358c-5a45-4e34-a370-0a6eceae403d/title 1571289885724 webdriver::server DEBUG <- 200 OK {"value":"CAS – Central Authentication Service"} __WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CAS û Central Authentication Service"}... _WD_Action: {"value":"CAS û Central Authentication Service"} I thought it has to do with the iMode in which _WinHttpSimpleRequest is called. I see this in the function header: ; $iMode - [optional] reading mode of result ; |0 - ASCII-text ; |1 - UTF-8 text ; |2 - binary data But in tests I did not see any solution.
  3. The default codepage is: C:\>chcp Active code page: 850 C:\> The windows version is Dutch. The script is very simple. I request the title of a page. The title of the page is: "CAS &ndash; Central Authentication Service". But __WD_GET returns it as "CAS û Central Authentication Service". So if I want to check the title in my script it fails. This is the script where I get the title: Func __EUP_GETTITLE() Local $sURL = $_WD_BASE_URL & ":" & $_WD_PORT & "/session/"& $__g_aEUP[$EUP_WD_SESSION][0] & "/title" Local $sResponse = __WD_Get($sURL) Local $sJSON = Json_Decode($sResponse) Return Json_Get($sJSON, "[value]") EndFunc
  4. Hi everyone. I have this issue: The webdriver returns the title of the page differently then _WD_GET displays it. This is in my log: 1571135606630 webdriver::server DEBUG -> GET /session/dd2a1e5d-f315-474f-bae9-84341b4af31c/title 1571135606632 webdriver::server DEBUG <- 200 OK {"value":"CAS – Central Authentication Service"} __WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CAS û Central Authentication Service"}... It must have something to do with the charset. Anyone knows how to handle this issue?
×
×
  • Create New...