vba selenium waitDisplay method not working - vba

Who can tell me why the method of Selenium WebDriver.WaitDisplayed is not working in my code below?
I can share other code if needed?
Set a = webdriber.FindElementsByClass("search-global-typeahead__collapsed-search-button")
a.Item(1).WaitDisplayed(True).Click ' operation timed out after -1ms. Run-time err'21'
a.Item(1).Click ' gives an error
I added code below; without successful result
a.Item(1).WaitDisplayed(True, 100).Until(a.Item(1).IsDisplayed,10)

I guess to start with the most obvious, does it still cause an error after fixing the typo in the 'webdriber' identifier? I'm guessing your declaration is spelled 'webdriver'.

Related

I am getting a EOF error and am unsure what to do, it occurs when EOF error when reading line 61?

In a coding project I am doing I keep getting the EOF error whenever the user inputs a space, and I am not sure how to fix it, I can not make it a function because of the set up of my if and while statements, any help would be great
I tried turning the choice into a function but due to the layout it does not work. I attempted to use try and execpt but it led to a endless loop of the menu being printed I set it up as follows
try:
playerschoice = int(input(menu)) #Saves player choice again
execpt EOFErrors:
break

T24 - core banking

I am getting below error in t24 when executing Auth Routine.
FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS
the error appears when the routine gets executed and completed.
i have also tried to call a mainline routine which post OFS,
the problem is the code gets executed successfully, the OFS response is also retured.
but when the routine gets end, it shows this error.
I know some but wanna share everyone this issue was solved, please check below capture
Just add 1 line SENSITIVITY = '' after execute OFS.GLOBUS.MANAGER, all version routine when face this this issue we can do this way no need to create main routine.

Error override for successul fail

I'm trying to override and error thrown by one of my command in my script.
I run a simple setup, which returns an error code of '1', which means it failed but I know that it was successful, so I would like for my script to return an exit code of '0' instead when this error is thrown.
THks in advance and don't hesitate if you have any questions.

Arduino Errors with sainsmart sheild

http://pastebin.com/86JXkUBf
This is my Arduino code that I am using as a status indicator for me and my roommate. The code as working completely fine until I decided to be able to edit the first line on the display, which is the sainsmart LCD keypad shield. Now, when I verify the code in the arduino IDE, i get the following set of errors:
sketch_jul22b.cpp:15:81: error: expected unqualified-id before '\x593a'
sketch_jul22b.cpp:15:81: error: expected ‘}’ before '\x593a'
sketch_jul22b.cpp:15:81: error: expected ‘,’ or ‘;’ before '\x593a'
sketch_jul22b.cpp:15:88: error: expected declaration before ‘}’ token
I would appreciate it very much if somebody would tell me:
1) what these errors mean.
2) How to resolve them.
Thanks!
corrected code that compiles.
http://pastebin.com/j5B37UUP
#praks411 was correct, but there were some typo's and need to use lcd.print instead of lcd.write.
I'm not sure exactly which line you have edited but looking at your code it seems to me that the status String must be in double quotes. Also there should be , instead of . after "Awesomeness"
So instead of
String top[] = {'Status:', 'Adam:', 'Oliver:', 'Adam & Oliver:', 'Awesomeness'. 'OBEY:'};
You should have
String top[] = {"Status:", "Adam:", "Oliver:", "Adam & Oliver:", "Awesomeness", "OBEY:"};

VBA Error - Reflection.FTP.3

I had this error pop up on exactly the 3rd line of code below. There seem to be no explanation on the Internet for this behaviour.
I'm looking at why this error came up, and fixed itself after few minutes.
Set Ftp = CreateObject("Reflection.FTP.3")
Ftp.Open "xxx.xxx.xxx.xxx", "username", "password"
Ftp.SetCurrentDirectory "DirectoryName/DirectoryName/DirectoryName"
What was the error?
Run-time error '-2147418113 (8000ffff)':
Method 'SetCurrentDirectory' of object 'IReflectionFTP' failed
More details:
Application: Excel Macro
Language : VB (VBA)
*Is this because of a coding error? *
Not likely. The macro has been long running and this came up for the first time.
*Is it because of a FTP service disruption? *
May be. But logs have a recording for every second and there seems to be no outage.
It seems to me there is a connection problem here - maybe a timeout? I assume that your three lines of code don't execute one after another (ie the SetCurrentDirectory is after some more code). This error will come up if the Ftp object doesn't have a valid connection that is logged in. Change the IP for the Open command to an invalid one and you'll see you get the same error.
Try setting the following line of code before SetCurrentDirectory command.
If FTP.Status = rcLoggedIn + rcConnected Then
Ftp.SetCurrentDirectory "DirectoryName/DirectoryName/DirectoryName"
Else
'Error handle
End If
Note, that you are late binding the object so for it to work for you, you'll need the If statement to be:
If FTP.Status = 17 Then
Also, if it is a timeout problem then I'd set the Timeout period for the session to be longer, ie FTP.TimeoutSession = 300.