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

Seeker (1/7)
0
Reputation
-
Hi, guys! I'm new with using Autoit. Is possible do an automation to an application desktop java using Autoit?
-
Yes, it worked. Thanks, by help. How to do for done is topic?
-
<table border="0" cellpadding="0" cellspacing="0" class="x-btn-wrap x-btn " id="ext-gen115" style="width: auto;"> <tbody> <tr> <td class="x-btn-left"><i> </i> </td> <td class="x-btn-center"><em unselectable="on"> <button class="x-btn-text" type="button" id="ext-gen116"> <img src="imgs/hemera/pesquisa_grupoA_old.png" alt="Pesquisar grupos, clientes e pontos de medição (antiga)"> </button> </em> </td> <td class="x-btn-right"> <i> </i> </td> </tr> </tbody> </table> Sorry, ready , now thi is in post.
-
Hi guys, good afternoon! I have a problem for to do an automation web page, thi is web page have dynamic id's. Do can you help me? #cs ---------------------------------------------------------------------------- Author:Diego Lopes da Silva Version:1.0.0 Script Function: 1 - Acessar tela de relatorio de consummo 2 - Gerar grafico de linha 3 - Extrair dados para excel 4 - Validar informações #ce ---------------------------------------------------------------------------- ;biblioteca paa abrir IE, Gerar Print de tela,capturar dados de txt #include <IE.au3> #include <ScreenCapture.au3> #include <File.au3> #include <AutoItConstants.au3> ;Variaveis para acesso ao sistema Dim $link Dim $login Dim $senha ;Variaveis para função de print Dim $eviden Dim $nimg Dim $opcao Dim $oIE ;Variavel para data Dim $datafat Sleep(3000) FAcessa() FAcessaRelatorio() ;FExtraiRelatorio() Sleep(3000) ;FGeraScriptCarga() ;ProcessClose("iexplore.exe") ;Criando Função de FAcessa Func FAcessa() ;Lendo dados de configuração de acesso $file = "\\monaco\QualidadeSoftware\Automação\Configuração\RelatorioConsumo.conf" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) Next FileClose($file) ;Split para quebrar linha com a massa de dados $dados=StringSplit($line, "|") ;Setando variaveis de acesso $link=$dados[1] $login=$dados[2] $senha=$dados[3] $eviden=$dados[4] ;abrinfo navegador $oIE = ObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") _IENavigate($oIE, $link) $oIE.visible = 2 WinSetState("", "", @SW_MAXIMIZE); $Name = _IEGetObjById($oIE, "ext-comp-1001") $Email = _IEGetObjById($oIE, "ext-comp-1002") $Click = _IEGetObjById($oIE, "ext-gen43") _IEFormElementSetValue($Name,$login) _IEFormElementSetValue($Email,$senha) _IEAction($Click,'Click') Sleep(5000); EndFunc ;função para acessar relatorio Func FAcessaRelatorio() Local $oIEFrame = _IEGetObjByName($oIE, 'pg_inicial_iframe') $GrupoA1 = _IEGetObjById($oIEFrame,'ext-gen212') _IELoadWait($GrupoA1) _IEAction($GrupoA1,'Click') Local $oLupa = _IEGetObjById($oIEframe,'ext-gen115') _IELoadWait($oLupa) _IEAction($oLupa,'Click') EndFunc I need access id "ext-gen115" in attachment have code html and some prints. index.htm
-
Ok , It worked brother! I Have a last question, for access the sub - elements i need to do like this? Local $oIEFrame = _IEGetObjByName($oIE, 'pg_inicial_iframe') $GrupoA1 = _IEGetObjById($oIEFrame,"ext-gen212") _IEAction($GrupoA1,"Click") Local $oLupa = _IEGetObjById($GrupoA1,"ext-gen116") _IEAction($oLupa,"Click") This is Correct?
-
Ok I understand , but i don't know how to do. Look, is code of the web page . How i could to do? In attachment the code of web page. index.zip
-
Yes, this inside frame. Why?
-
#include <IE.au3> #include <ScreenCapture.au3> #include <File.au3> #include <AutoItConstants.au3> ;Variaveis para acesso ao sistema Dim $link Dim $login Dim $senha Dim $oIE ;Variaveis para função de print Dim $eviden Dim $nimg Dim $opcao FAcessa() FBusca() ;Criando Função de FAcessa Func FAcessa() ;Lendo dados de configuração de acesso $file = "\\monaco\QualidadeSoftware\Automação\Configuração\RelatorioConsumo.conf" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) Next FileClose($file) ;Split para quebrar linha com a massa de dados $dados=StringSplit($line, "|") ;Setando variaveis de acesso $link=$dados[1] $login=$dados[2] $senha=$dados[3] $eviden=$dados[4] ;abrinfo navegador $oIE = ObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") _IENavigate($oIE, $link) $oIE.visible = 2 WinSetState("", "", @SW_MAXIMIZE); $Name = _IEGetObjById($oIE, "ext-comp-1001") $Email = _IEGetObjById($oIE, "ext-comp-1002") $Click = _IEGetObjById($oIE, "ext-gen43") _IEFormElementSetValue($Name,'admin') _IEFormElementSetValue($Email,'admin') _IEAction($Click,'Click') Sleep(3000) EndFunc Func FBusca() $GrupoA1 = _IEGetObjById($oIE,"ex-gen212") _IEAction($GrupoA1,'Click') EndFunc Sorry, i'm new in here. I did not know.
-
Folliwing my code: #include <IE.au3> #include <ScreenCapture.au3> #include <File.au3> #include <AutoItConstants.au3> ;Variaveis para acesso ao sistema Dim $link Dim $login Dim $senha Dim $oIE ;Variaveis para função de print Dim $eviden Dim $nimg Dim $opcao FAcessa() FBusca() ;Criando Função de FAcessa Func FAcessa() ;Lendo dados de configuração de acesso $file = "\\monaco\QualidadeSoftware\Automação\Configuração\RelatorioConsumo.conf" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $line = FileReadLine($file, $i) Next FileClose($file) ;Split para quebrar linha com a massa de dados $dados=StringSplit($line, "|") ;Setando variaveis de acesso $link=$dados[1] $login=$dados[2] $senha=$dados[3] $eviden=$dados[4] ;abrinfo navegador $oIE = ObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") _IENavigate($oIE, $link) $oIE.visible = 2 WinSetState("", "", @SW_MAXIMIZE); $Name = _IEGetObjById($oIE, "ext-comp-1001") $Email = _IEGetObjById($oIE, "ext-comp-1002") $Click = _IEGetObjById($oIE, "ext-gen43") _IEFormElementSetValue($Name,'admin') _IEFormElementSetValue($Email,'admin') _IEAction($Click,'Click') Sleep(3000) EndFunc Func FBusca() $GrupoA1 = _IEGetObjById($oIE,"ext-gen212") _IEAction($GrupoA1,'Click') EndFunc
-
bluebug reacted to a post in a topic: Automation WebPage
-
Hi guys, i need a help. I'm to do automation , i take ids of the webpage with inspect of google chrome . But show errors following the pictures : <div class="x-dock-panel x-layout-panel-hd-text x-dock-panel-title-text" id="ext-gen215" style="background-image: url("imgs/hemera/tree/icn_grupoa.png"); background-repeat: no-repeat; background-position: 3px 50%; padding-left: 23px;">Grupo A</div> Can Someone help me? Please
-
Ok, Thanks by by help.
-
-
Does not work , this is a page have dynamic id. Web pages with dynamic id can create this errors?
-
Hi guys, I need a help, i have a problem to do automation in following code html: <input type="text" size="20" autocomplete="off" id="ext-comp-1001" name="username" class=" x-form-text x-form-field x-form-invalid" style="width: 112px;"> <input type="password" size="20" autocomplete="off" id="ext-comp-1002" name="password" class=" x-form-text x-form-field x-form-invalid" style="width: 112px;"> My Code in autoit: #include<IE.au3> $oIE = _IECreate("http://zero0679.comule.com/SimpleForm.php") $Name = _IEGetObjById($oIE, "ext-comp-1001") $Email = _IEGetObjById($oIE, "ext-comp-1002") _IEPropertySet($Name, 'innerText', 'Henry') _IEPropertySet($Email, 'innerText', 'Henry@gmail.com') But does not work. Do can you help me? web.au3