bhumis
Members-
Posts
13 -
Joined
-
Last visited
bhumis's Achievements
Seeker (1/7)
0
Reputation
-
How to create a special format attribute in XML file
bhumis replied to bhumis's topic in AutoIt General Help and Support
Thank you So much! I am going to try this code now. -
I am still new to AutoIT. I have included _XMLDomWrapper.au3 in my script and tried using _XMLCreateAttrib and _XMLCreateChildWAttr methods. I need to add the below attribute into the XML file after the "ip" attribute. Attribute: <displayFieldUUID name="task">A23ET45</displayFieldUUID> XML File: <?xml version="1.0" encoding="UTF-8" ?> - <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mapping_schema.xsd"> <version>1.0</version> <publisher name="ABCD" /> <action>EXPORT_FROM_A</action> - <application CRUDOptions="IGNORE" name="Application"> <applicationUUID>2F57FE87</applicationUUID> - <searchField> <displayFieldUUID name="ip">B405EFDB</displayFieldUUID> <displayFieldUUID name="criticality">E94E9D77</displayFieldUUID> </searchField> </application> </configuration> I tried the following method but it gives error. $strAttribName = "task" $strAttribValue = "A23ET45" _XMLCreateAttrib("//configuration/application/searchField/displayFieldUUID", $strAttribName, $strAttribValue) -bhumis
-
call au3 script and wait within another au3
bhumis replied to bhumis's topic in AutoIt General Help and Support
My apologies! I am still a beginner, reading the help file and writing code at the same code. Somehow i commented Runwait and using Run instead in my code. I reran using RunWait, it works fine. Sorry for wasting your time. -
call au3 script and wait within another au3
bhumis posted a topic in AutoIt General Help and Support
Hi everyone, I searched the forum and help file before starting this topic. Looks like there are work arounds to "run and wait au3 script within another script". I have two au3 files with functions and other code. "first.au3" has a reusable code (not functions) kind of a set up that i need to run again and again from the other au3 scripts. Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & $sFilePath & '"', $sWorkingDir, $iShowFlag, $iOptFlag) The above "Run" function from "second.au3" script just runs the "first.au3" and does not wait until it is done. For time being i am using "sleep" after calling "first.au3". Is there any other way to wait for the above script to finish off running "first.au3" before running "second.au3"? Any help is greately apprecaited. -bhumis -
How to comment out an existing node in XML
bhumis replied to bhumis's topic in AutoIt General Help and Support
Thank you! I will insert a comment firsta nd then delete the existing node entry. -
Hi everyone, I have included and looked at the code of "_XMLDomWrapper.au3" and tried to use "_XMLUpdateField" function. This function works if i try to update a node value but giving an error to comment out an exising node. This is my node and i have to comment out this entire node. <displayFieldUUID name="businessunit">D079D2CC-4AB5-48D2-985B-94F7E55331D0</displayFieldUUID> How do i comment out an existing node of XML file? The above node should look like this. <!--<displayFieldUUID name="businessunit">D079D2CC-4AB5-48D2-985B-94F7E55331D0</displayFieldUUID>--> Thanks!
-
Hi, I searched teh help file and also thsi forum before posting this question. I am new to AutoIT. I tried passing different parameters in _IEFormElementCheckboxSelect but none of them works. Here is the viewsource of the checkbox. This specific html file does not have any "form" name or no "iframes" so i am directly using __IEGetObjByName and then then trying to select the checkbox. <tr> <td>Criticality Filter <span style='color:red'>*</td> <td><input name='Filter1' type='checkbox' value='High'>High <input name='Filter2' type='checkbox' value='Medium'>Medium <input name='Filter3' type='checkbox' value='Low'>Low</td> <td>The filter for criticality.</td> </td> </tr> AutoIt code: $Filter1 = "High" Local $oFilter1 = _IEGetObjByName($oIE, "Filter1") --- This one does not give any error Local $oCheckBox = _IEFormElementCheckBoxSelect($oFilter1, $Filter1, "Filter1", 1, "byValue") -- This gives $_IEStatus_InvalidObjectType error _IEAction($oCheckBox, "click") I even tried with index that one gives error as well. Any help is greately appreciated. Thanks, bhumis
-
_IECreate gives error - vbs file opens in IE
bhumis replied to bhumis's topic in AutoIt General Help and Support
The default "open with" setting is nto IE for vbs file. That's the mechanism. When i run the vbs file from the cmd line using wscript it opens in IE without any "File download warning" windows. I am not able to get the handle of this browser window using _IEAttach function passing "URL". It gives me handle only if i say "IEFRAME" instead of url. Anyway i am trying to get teh hanlde by getting all teh window handles of all teh open browsers. -
_IECreate gives error - vbs file opens in IE
bhumis replied to bhumis's topic in AutoIt General Help and Support
Mitchell, We have a vbs wizard and when i double click on it it opens in IE browser only (it is written that way) and there are few pages in that browser window where i ave to enter values in it and connect to some other server. That's the requirement. The vbs wizard will open up only in browser. _IEAttach is not working if i give the URL or title of the browser window. The only way that i can get the object for this browser window is to get the IE object by getting the handle of the IEFrame. If i have more than one browsers open (say for ex: junkins browser and some other browser opened before), how do i get handle for this vbs browser window? I do not know how to attach the snapshot here to show you the vbs browser window. I will figure out and then attach the snapshot. Thanks, bhumis -
Hi everyone, I am new to AutoIT. I searched this forum before posting this topi and could not find a solution. I have a vbs app which opens in IE browser. Before opening IE browser it gives "File Download" security warning. I am using _IECreate to open the vbs app and it gives IE.au3 (560) : ==> The requested action with this object has failed.: ex: _IECreate("file:///C:/Program%20Files%20(x86)/auto-config/config_wizard.vbs") When i try to to open this it gives File Download dialog. Before that _IECreate gives error. Is there anyway that i can get handle for this vbs file that opens in IE. Any help is appreciated. Thanks, bhumis
-
Thanks Richards! That's what i thought. I will try to use autoit IEFrame functions without python. Thanks, bhumis
-
Hi everyone, I am really a beginner to AutoIT and just started working on it last week. I have a requirement to automate an IEFrame (vbs wizard opens in IE browser) using python language. When i spied on the IEFrame all the controls are recognized as "Internet Explorer_Server1" INSTANCE:1 . I am not sure if i am missing anything here. How do i include ie.au3 in python? Any help is greately appreciated. Thanks, bhumis