Forum Discussion
I'm confused?!?!?
In your initial post, I'm in agreement with tristaanogre, it looks like the hook into IE is broken/corrupted/missing.
But in your second post ..... I'm not sure whats going on?
Screenshot 1 - Chrome - You close Chrome then try and navigate to page on it? That's not going to work! (Log and code both show this)
Screenshot 2 - IE - Not sure what's happening here. It looks like the "Run" method didn't work on your browser object? I just tried it and it worked fine.
Screenshot 3 - IE - Suggests it isn't killing the process properly. Which may mean you have two IE processes present. Which will cause problems if one is hidden. I thought this might be the case with screenshot 2, but the log for that said no IE process found ...
Ahhhhh! Hang on. On screenshot 2, it says it didn't kill the process as it couldn't find the window. Are you sure you don't have a second (invisible) IE process floating around in the background during all this?
Beyond that guess, I'm not sure what's happening here ....
Something else I noticed... you're using it a appears to be either JScript or JavaScript and you're calling Navigate("http:\\smartbear.com")
First of all, proper URL's use the "slash" not the "backslash" so it should be as Navigate("http://smartbear.com"). However, most browsers are "smart" enough to autocorrect to the correct slash.
If, however, you ARE going to use backslash, because you are using JScript/JavaScript, the "backslash" character in JavaScript strings is used for special codes. So, anytime you want it to "print", you actually need to double it up.
So, make sure you're URL's look like Navigate("http:\\\\smartbear.com\\") in order to properly send the correct characters.
Other than that... yeah, as Colin_McCrae points out your log shows what your code is doing, that you're closing the browser and THEN calling the "Navigate" function. If you are closing the browser, you need to make sure that you either re-open it or, instead of Navigate use "Run". So, your code would be,
Browsers(btChrome).Run(url);
Related Content
- 5 years ago
Recent Discussions
- 8 hours ago