G1ANT Studio Advance Course Lesson 8 Error - g1ant

Error Image occuring in advance course Lesson 8:
Code used is
program mtsc
♥rdc = /ui[#name='Remote Desktop Connection']
waitfor.ui ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.click ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.settext ‴♥rdc/ui[#typeid='50003']/ui[#typeid='50004']‴ text test.domain.com
delay 1
ui.settext ‴♥rdc/ui[#id='13064']‴ text admin
When I am executing program their is error occuring at 4th line of code i.e. "
Exception of type FlaUI.Core.Exceptions.ElementNotAvailableException'
was thrown" kindly give solution on this error.

Use the wpath address of the combox and paste it in the code instead of "rdc/ui[#typeid='50003']/ui[#typeid='50004".
And don't use rdc in front of that wpath, it will run the code.
You can refer my assignment video. I have shown in that how can we remove this error.

Related

ie.waitforvalue command doesn't work properly

I tried to run this code but it doesn't work properly. It got stuck on line 3 and gives error "timeout, element not found".
ie.open g1ant.com
window ‴✱internet explorer✱‴
ie.waitforvalue script document.getElementsByClassName("footer_stuff").length expectedvalue 1
dialog ‴Page loaded!‴
ie.close
It's because "footer_stuff" class doesn't exist in g1ant.com page. Did you mean "footer"? Try the following code instead.
ie.waitforvalue script document.getElementsByClassName("footer").length expectedvalue 1

xlwings(0.7.0) importing UDF error

Hello,
My problem is that when i try to import an UDF in Ecxel 2013 I receive the error message can be seen on the picture. I have installed xlwings and it works except the UDF importing. Note that i used "xlwings quickstart myproject" so there is no problem with the file names and i also used the sample function so that should be fine as well
Thank you in advance for your help!
I currently don't understand why you get that error, but I should be able to tell you how you can work around it for now:
Open the file udfs.py in the xlwings package and remove the last argument on line 36, i.e. remove , ArgumentDescriptions=argdocs.
The intended functionality of that line (showing function argument description) is currently broken anyway (see here) so hopefully this will be resolved in a future version.

Why does Corona give an error loading code that loads fine with lua?

I'm having problems with a specific line of code - building.transmitter:[operation](player, unpack({...})) that causes an error in Corona, yet this loads fine when it's run in Lua separately. I suspect it has something to do with the : being placed before the [operation] variable but I'm clueless why.
Specifically the module is written as,
local activate = {}
local function activate.transmitter(player, operation, ...)
building = player:getTile()
building.transmitter:[operation](player, unpack({...}))
end
return activate
The runtime errror that is appearing gives me
"error loading module from file, '<name>' expected near '['"
Edit - WOW! I didn't notice that when troubleshooting this in Corona I changed some of the lines of code to identify the problem. I then mistakenly tested the edited code in Lua and it ran fine. I didn't realize the code wasn't the original until siffiejoe pointed out the interpreter getting an error as well. Sorry for the mistake.
maybe Corona uses older version of Lua which does not support this syntax. You can try workaround instead of
building.transmitter:[operation](player, unpack({...}));
you can call
building.transmitter[operation](building.transmitter, player, unpack({...}));

123 ERROR_INVALID_NAME after activate Wave audio liverecorder

I am using the wave audio component in my project and I run into a problem that I am unable to resolve.
I am using Delphi XE 5 and my operating system is Windows 8. When I am trying to the run the project and active the liveaudio recorder on Windows 7, I got this: error Exception EOSError in module Chatproject.exe at 00029633. System Error. Code: 123. The filename, directory name, or volume label syntax is incorrect. But its working normal on Windows 8,. I tried to debug and figure out the problem I got this error message when I am activating the recorder
Update of the question :
i debugged each of sendtocl , sendbuffer ,buffer^, buffersize and here is result in the image ,, but i have no idea how to fix sendbuffer and buffer^ and sendtocl
http://i.stack.imgur.com/5sZ05.jpg
You have four references to sendtocl:
#56: sendtocl: TIdUDPClient;
#235: if sendtocl.active then
#236: sendtocl.SendBuffer(RawToBytes(Buffer^, Buffersize))
#260: sendtocl.Broadcast(usertype.Text, 12000);
It should be getting created when the form is created, assuming it's a component dropped on the form. But for whatever reason, it isn't instantiated at some point.
This is consistent with the exception message you're getting.
The ERROR_INVALID_NAME is probably pointing to an invalid URI, path, or filename -- it's entirely possible that it's valid in Win 8 but not Win 7. So when you try to invoke .Active, it fails. But why sendtocl woudl be set to NIL doesn't make sense. Mabye the exception is on the SendBuffer method?
As Ken suggests, you just need to go in with the debugger and figure out what's going on. I'm not sure there's much more us "out here" can do for you other than comment on how the code appears.

Xcode 5 Documentation Error

I wanted to describe my code like this
/** Loads and parses the XML file*/
+(NSMutableArray *)loadXML:(NSString *)table;
But when I try to use the quick help for loadXML: Xcode crashes with this Error:
ASSERTION FAILURE in /SourceCache/IDEPlugins/IDEPlugins-5064/IDEQuickHelp/Models/IDEQuickHelpContentCreator.m:321
Details: Error creating XML document from clang-parsed comment block: Error Domain=NSXMLParserErrorDomain Code=73 "Line 1: invalid character in attribute value
Line 1: attributes construct error
Line 1: Couldn't find end of Start Tag Function
" UserInfo=0x7fc78fb98500 {NSLocalizedDescription=Line 1: invalid character in attribute value
Line 1: attributes construct error
Line 1: Couldn't find end of Start Tag Function
}
Could anyone help me please?
Sorry for my bad english
Delete the "LaunchScreen.xib" from your project and you are done.
Sounds like it's time to submit a bug report to Apple's bug reporter.
If you restart your computer and re-launch Xcode, does the crash occur again?

Resources