-
Posts
13 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Harutyun's Achievements

Seeker (1/7)
0
Reputation
-
Harutyun changed their profile photo
-
WebDriver UDF - Help & Support (II)
Harutyun replied to Danp2's topic in AutoIt General Help and Support
Thanks @Danp2, it helps to avoid that problem with Chrome SSL certificate warning (Your connection is not private). I put "acceptInsecureCerts":true before goog:chromeOptions. I try it on Edge webdriver function too, in this case putting before ms:edgeOptions and it works. Thanks again. -
WebDriver UDF - Help & Support (II)
Harutyun replied to Danp2's topic in AutoIt General Help and Support
Hello @Danp2 , I have tried it, but don't work. Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[' & """start-maximized""," & " ""disable-infobars""" & "" & '], "excludeSwitches": [ "enable-automation"], "useAutomationExtension": false, "acceptInsecureCerts":true}}}}' EndFunc What is going wrong here? Please help me) -
setup geckodriver with maximized window
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
I don't know how does it happen 🙃 just I have tried _WD_Window after _WD_CreateSession and it works but it would be better if it was possible to open fullscreen with argument via capabilities string like chromedriver 🙂 -
setup geckodriver with maximized window
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
no any error message , both of them (_WD_Window and WinSetState) work before starting session if there isn't argument for maximize I will try to pass height and width in the capabilities string. thank you much -
Func SetupGecko() _WD_Option('Driver', 'geckodriver.exe') _WD_Option('DriverParams', '--log trace') _WD_Option('Port', 4444) $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"browserName": "firefox", "acceptInsecureCerts":true}}}' EndFunc Hi, how can I maximize window while starting? I tried to use argument ''start-maximized'' like chromedriver, but it didn't work, then I tried _WD_Window($sSession, "maximize") after _WD_Option and again no result. I have tried WinSetState("", "", @SW_MAXIMIZE) too, but again no result. Is there any solution for attached function?
-
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
@Danp2 ok, I will update , thank you very much in this case which is better use Webdriver UDF instead of Chrome? -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\test\fullScreen.au3" /UserParams +>17:17:45 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0) Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.5) from:C:\Program Files (x86)\AutoIt3 input:C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\test\fullScreen.au3 +>17:17:45 AU3Check ended.rc:0 >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\test\fullScreen.au3" +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop. _WD_IsLatestRelease: False _WD_IsLatestRelease ==> Success _WDStartup: OS: WIN_10 WIN32_NT 18363 _WDStartup: AutoIt: 3.3.14.5 _WDStartup: WD.au3: 0.3.0.6 (Update available) _WDStartup: WinHTTP: 1.6.4.1 (Download latest source at <https://raw.githubusercontent.com/dragana-r/autoit-winhttp/master/WinHttp.au3>) _WDStartup: Driver: chromedriver.exe _WDStartup: Params: --log-path="C:\Users\Harutyun Harutyunyan\AppData\Local\AutoIt v3\test\chrome.log" _WDStartup: Port: 9515 __WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars"] }}}} __WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"85.0.... _WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"85.0.4183.83","chrome":{"chromedriverVersion":"84.0.4147.30 (48b3e868b4cc0aa7e8149519690b6f6949e110a8-refs/branch-heads/4147@{#310})","userDataDir":"C:\\Users\\HARUTY~1\\AppData\\Local\\Temp\\scoped_dir22524_419438348"},"goog:chromeOptions":{"debuggerAddress":"localhost:57350"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"9e49fd4c61d82327fc5a5b4771027859"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/url; $sData={"url":"https://www.autoitscript.com/forum/"} __WD_Post: StatusCode=200; ResponseText={"value":null}... _WD_Navigate: {"value":null} __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/window/maximize; $sData={} __WD_Post: StatusCode=200; ResponseText={"value":{"height":1056,"width":1936,"x":-8,"y":-8}}... _WD_Window: {"value":{"height":1056,"width":1936,"x":-8,"y":-8}}... __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/element; $sData={"using":"xpath","value":"//*[@id='elUserSignIn']"} __WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"ea484aa4-98e2-415b-a923-7d83c1944c4a"}}... _WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"ea484aa4-98e2-415b-a923-7d83c1944c4a"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/element/ea484aa4-98e2-415b-a923-7d83c1944c4a/click; $sData={"id":"ea484aa4-98e2-415b-a923-7d83c1944c4a"} __WD_Post: StatusCode=200; ResponseText={"value":null}... _WD_ElementAction: {"value":null}... __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/element; $sData={"using":"xpath","value":"//*[@id='elSignIn_submit']"} __WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"adf20a30-5ef5-44f3-872c-56c1ec1f466f"}}... _WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"adf20a30-5ef5-44f3-872c-56c1ec1f466f"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/9e49fd4c61d82327fc5a5b4771027859/element/adf20a30-5ef5-44f3-872c-56c1ec1f466f/click; $sData={"id":"adf20a30-5ef5-44f3-872c-56c1ec1f466f"} __WD_Post: StatusCode=200; ResponseText={"value":null}... _WD_ElementAction: {"value":null}... +>17:18:09 AutoIt3.exe ended.rc:0 +>17:18:09 AutoIt3Wrapper Finished. >Exit code: 0 Time: 24.71 this is the result -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
there is no any error , after run all is done, only part of _ChromeObjSetValueByName isn't working -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
yes, I have downloaded -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
thank you, I have edited -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
I see, thanks -
problem with set value by name - (Moved)
Harutyun replied to Harutyun's topic in AutoIt General Help and Support
sorry, did you move already -
Hello everyone, I'm green hand) I can't find the solution why attached script doesn't work. _ChromeObjSetValueByName want to set value by name, but not executing these commands #include "wd_core.au3" #include "wd_helper.au3" #Include <Array.au3> #Include <Chrome.au3> Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":[' & """start-maximized""," & " ""disable-infobars""" & "" & '] }}}}' EndFunc Func _ChromeSetInputValueById($sSession,$Id,$Value) $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@id='"&$Id&"']") _WD_ElementAction($sSession,$sButton,'value', $Value) EndFunc Local $sDesiredCapabilities, $sSession SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "https://www.autoitscript.com/forum/") _WD_Window($sSession, "maximize", "") Sleep(500) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='elUserSignIn']") _WD_ElementAction($sSession, $sElement, "click") Sleep(500) $Username = "testlogin" $Password = "testpassword" _ChromeObjSetValueByName("auth",$Username) Sleep(700) _ChromeObjSetValueByName("password",$Password) Sleep(500) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@id='elSignIn_submit']") _WD_ElementAction($sSession, $sElement, "click")