sarmisen / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

Selenium on Internet Explorer #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Operating system : home sp2
.Net Framework version : 3.5
Office Version : 2010
SeleniumWrapper version : 1.0.10

Right now Selnium and VBA Wrapper works really fine!
But now I want to execute my testcases on a InternetExplorer.
So I start the IEDriverServer.exe. When I start the Testcase a Internet 
Explorer Window opens but the I get an Error from Selenenium. 
"Automatisierungsfehler" in German. :-)
This occurs when the Testcase trys to open an URL.
Did I forget to make any adjustements?

Best Regards
Christian

Original issue reported on code.google.com by Neyses.i...@gmail.com on 21 Feb 2013 at 11:03

GoogleCodeExporter commented 9 years ago
Please provide an example to reproduce the issue on a public website.

Original comment by florentbr on 21 Feb 2013 at 11:52

GoogleCodeExporter commented 9 years ago
Sorry this shouldn`t be a "Defect". I thought that I Choose "Support"

Original comment by Neyses.i...@gmail.com on 21 Feb 2013 at 11:56

GoogleCodeExporter commented 9 years ago
This was my example:

Public Sub TC001()

Dim selenium As New SeleniumWrapper.WebDriver

selenium.Start "internetexplorer", "http://www.google.com/"
selenium.Open "/"
selenium.Type "name=q", "Eiffel tower"
selenium.Click "name=btnG"
selenium.Wait 1000
selenium.getScreenshot().Copy
selenium.stop
Sheets(1).Range("A10").PasteSpecial       'Paste the screenshoot at range A10

End Sub

Original comment by Neyses.i...@gmail.com on 21 Feb 2013 at 11:57

GoogleCodeExporter commented 9 years ago
I think I have to define the path to the IE-Driver.. But I don`t know where.

Original comment by Neyses.i...@gmail.com on 21 Feb 2013 at 11:59

GoogleCodeExporter commented 9 years ago
There's no path to define, that's why i changed the issue to Defect.
Can you try to run this code in a .vbs file and tell me if it went without 
error ?

Set selenium = CreateObject("SeleniumWrapper.WebDriver")
selenium.Start "ie", "http://www.google.com/"
selenium.Open "/"
selenium.Type "name=q", "Eiffel tower"
selenium.Click "name=btnG"
selenium.Wait 1000
selenium.getScreenshot().Copy
selenium.stop
wscript.echo "END"

Original comment by florentbr on 21 Feb 2013 at 12:34

GoogleCodeExporter commented 9 years ago
Yeah now it works :-)
After running the .vbs I got the message that the zoom Level of Internet 
Explorer was set to 105%. And it has to be at 100%.
After setting it to 100% everything is fine! :-)

Thanks for your Help!

Best Regards
Christian

Original comment by Neyses.i...@gmail.com on 21 Feb 2013 at 12:45

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 21 Feb 2013 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:36