Jump to content

Jezyy

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

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

Jezyy's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi @water I realize it's quite an old topic but I wonder whether it's possible to make Outlook to synchronize particular folder - I mean download new mail(s) from server as if an user would push "Send/Receive" button on ribbon ? There's no need to change the setting globally for the whole account as I know more less the time the expected mail could come. OT: How do you think - forcing Outlook every 15 seconds would be an exaggeration and an overkill for Exchange server ?
  2. @Danp2 Thank you for the replay. Due to company's security policy and restrictions I'm unable to upgrade Chrome. So I've decided to make the described temporary solution permanent and downgraded both UDF and Chromedriver versions to those supported by the installed browser.
  3. @danp2 I've downloaded UDF v.0.1.0.16 and latest Chromedriver 2.44 Than I've run this code: $inpText = "AB\s=#'C""D" _WD_ElementAction($oChr, $inp_search, "value", StringReplace(StringReplace($inpText, "\", "\\"), '"', '\"' )) ; capabilities to launch Chromedriver : Local $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true }}}}' and it works like charm: Unfortunatelly on machine, where it's intended to use, there's Chrome v.68 installed without the possibility to upgrade. The Chromedriver 2.44 doesn't work there, as intended originally to support Chrome v69-71 I mean it doesn't even launch the desired website. I'm stuck with Chromedriver 2.42 as it's the newest version that works. So above AutoIt code results with:
  4. As a temporary workaround I've decided to use dirty method that works : $inpText = "A'B\s=#C""D" Send(StringReplace($inpText, "#", "{#}"))
  5. Hello everybody This is my first post on this forum and I'd like to congratulate all contributors for the great job over the great UDF. Good job guys ! And now straight to the point. My code looks like this (UTF-8 encoded) : ; launching Chrome: _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path=' & @ScriptDir & '\chrome.log') Local $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true }}}}' _WD_Startup() $oChr = _WD_CreateSession($sDesiredCapabilities) $sStatus = _WD_Status() ; main script START ==================================================================== _WD_Navigate($oChr, "https://www.google.pl") $inp_search = _WD_FindElement($oChr, $_WD_LOCATOR_ByCSSSelector, "input[name='q']") $inpText = "AB\s=#CD" ; << this is text that is to be entered into input field (password like, so it can contain special characters: [",\,']) ConsoleWrite("!" & _WD_ElementAction($oChr, $inp_search, "value", $inpText) & @CRLF) ; << this code produces 'missing command parameters' result Local $sJsonElement = '{"' & $_WD_ELEMENT_ID & '":"' & $inp_search & '"}' ConsoleWrite("! JS Script Execution response: " & _WD_ExecuteScript($oChr, "return arguments[0].setAttribute('value', '" & StringReplace($inpText, "\", "\\\\") & "')", $sJsonElement) & @CRLF) ; << this code is ok, unless ' or " character is entered _WD_ElementAction($oChr, $inp_search, "clear") _WD_ElementAction($oChr, $inp_search, "value", "JEZYY") ; << just to be sure, that _WD_ElementAction works with standard alphabet ;) ; main script END ==================================================================== ; closing Chrome _WD_DeleteSession($oChr) _WD_Shutdown() So, my question is : how could it be possible to enter the following values into input field - preferably without using JS via _WD_ExecuteScript : $inpText = "AB\s=#CD" (possible with JS) $inpText = "AB\s=#C'D" $inpText = "AB\s=#C""D" for point 2 I get following error (even after modyfing original string like "AB\\\\s=#C''D" or "AB\\\\s=#C\'D" : point 3 result with:
×
×
  • Create New...