SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

using interface when the code is running

Open 3Tarekmohamed opened this issue 7 years ago • 9 comments

hello i have a problem i use vb6 and SeleniumBasic the problem is when i use any code like drv.get "https://github.com/"
i can't use the program interface or even control in it until the page load or the code is finish any help ?

3Tarekmohamed avatar Feb 09 '18 20:02 3Tarekmohamed

SeleniumBasic is synchronous so you can't load pages asynchronously. You would need to use some other implementation of Selenium like C# and use async/await.

mogulman52 avatar Feb 10 '18 01:02 mogulman52

thank you mogulman52
so there is no way ? i saw in .net they run the code as a service to hide cmd and make the program stable i can do it in vb6 ? or not ?

3Tarekmohamed avatar Feb 10 '18 06:02 3Tarekmohamed

Are you doing this in VB6? Since VB6 no longer exists I thought you meant VBA (i.e. Excel VBA). I haven't used VB6 in 10 years so I can't answer your question. I'm don't understand the comment 'i saw in .net they run the code as a service to hide cmd and make the program stable'. I just don't see a way to do it. SeleniumBasic is synchronous.

What exactly are you trying to do? You need to wait for the page to load before looking for elements.

mogulman52 avatar Feb 10 '18 14:02 mogulman52

thank you again for reply i use vb6 not VBA yes what i need is make the program stable when i use SeleniumBasic

3Tarekmohamed avatar Feb 12 '18 17:02 3Tarekmohamed

I actually tried to install my old disk of VB6 on Windows 10 to see if I could get SeleniumBasic to work with it. VB6 wouldn't install. My only suggestion is to use Excel and VBA.

mogulman52 avatar Feb 12 '18 17:02 mogulman52

You could also try and see if this would work under VB6 for you: http://htejera.users.sourceforge.net/vbswebdriver/.

daluu avatar Mar 06 '18 20:03 daluu

thank you mogulman52 ♥

3Tarekmohamed avatar Mar 17 '18 06:03 3Tarekmohamed

thank for replying daluu
but it's not support chrome

3Tarekmohamed avatar Mar 17 '18 06:03 3Tarekmohamed

any help please ?

3Tarekmohamed avatar Mar 17 '18 06:03 3Tarekmohamed