Giter Club home page Giter Club logo

selenium-vba's Issues

Need help getting selected text from a drop down

Operating system : Win 7
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : 1.0.14.0

What is your issue ?
I need help writing code to get the selected option from a drop-down field.
for test option 3, selected = "selected" and i wish to get the text "test 
option 3" in a variable. Can you please help me with the code?

HTML code of the field:-
<select size="1" id="Test_Reason" name="TestReason">
<option value=""></option>
<option value="93pVU5TE6m+3DXeaAdGauVpfBTBgK79u9UZuZX7usaI=">test option 
1</option>
<option value="V9h+SaJ+KSgQraaaGtFwl3+bcOBTSq+7RxXnKuhsBZ9=">test option 
2</option>
<option value="vQPa7USX8tLTcpZZ7uS6KjNarTv+fxJGKKaHNVIzWGE=" 
selected="selected">test option 3</option>
<option value="TjTaPhg3aGUbqSbad9aaN91JNJHvuS73FuThv5tbJ99=">test option 
4</option>
</select>

Original issue reported on code.google.com by [email protected] on 26 Dec 2013 at 6:35

unable to leave window up with links clickable

Operating system and version (32/64bit) : Microsoft Windows xp
.Net Framework version :1.1 SP2,2 SP2, 3.0 SP2, 3.5 SP1, 4 client profile 
installed
Office name and version(32/64bit) : Excel 2007
Browser name and version : IE 8
SeleniumWrapper version : 1.0.13.3

What steps will reproduce the problem with a public website ?
1. Here is my code. It is an example with an asp.net site

Public Sub test8()
  Dim driver As New SeleniumWrapper.WebDriver
  Dim By As New By, Assert As New Assert, Verify As New Verify, Waiter As New Waiter
  driver.Start "IE", "http://www.htc.com/"
  driver.setImplicitWait 5000

  driver.get "/www/support/"
  driver.findElementByXPath("(//input[@type='text'])[2]").Click
  driver.findElementByXPath("//button[@type='button']").Click
  driver.findElementById("ui-active-menuitem").Click
  End
  driver.Stop
End Sub

2.
3.

What is the expected output? What do you see instead?
I want to be able to end selenium, but leave the browser up so that I can click 
links. Instead none of he links are clickable until I manually end C:\Program 
Files\SeleniumWrapper\IEDriverServer.exe

Please provide any additional information below.

The problem does not occur in this code. I am able to click links no problem 
after ending the script.

Public Sub test9()
  Dim driver As New SeleniumWrapper.WebDriver
  Dim By As New By, Assert As New Assert, Verify As New Verify, Waiter As New Waiter
  driver.start "IE", "https://www.google.com/"
  driver.setImplicitWait 5000

  driver.get "/#gs_rn=23&gs_ri=psy-ab&cp=7&gs_id=6l&xhr=t&q=selenium&es_nrs=true&pf=p&biw=1920&bih=888&sclient=psy-ab&oq=selieni&gs_l=&pbx=1&bav=on.2,or.r_qf.&bvm=bv.49967636,d.cGE&fp=d791f201479bc82a"
  driver.findElementById("gbqfq").clear
  driver.findElementById("gbqfq").sendKeys "selenium"
  End
  driver.stop
End Sub


Original issue reported on code.google.com by [email protected] on 30 Jul 2013 at 5:06

Change firefox preferences

Operating system :
.Net Framework version : 3.5
Office Version : 2010
SeleniumWrapper version : 1.0.6

I need to download files without confirmation and seen that it could be done in 
selenium rc using setPreference command. Is there currently any way to 
manipulate firefox preferences (about:config) using Selenium VBA or is it going 
to appear or how can I implement it myself if it not overwhelmingly cumbersome?

I've managed to implement this task in Win7/Chrome/Office 2010 environment 
since Chrome doesn't ask confirmation by default. But script crushes in 
WinXp/Chrome/Office 2003 which most users are equipped with and firefox has 
this confirmation issue yet unresolved.

Original issue reported on code.google.com by [email protected] on 9 Aug 2012 at 11:59

Installation Issue: Windows not on C:

When running SeleniumWrapperSetup-1.0.5.0.exe I got this error:

"
Unable to execute file:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe

CreateProcess failed; code 3.
The system cannot find the path specified.
"

On the computer I was installing the wrapper to, Windows is on drive D. I 
created a junction to the windows folder in the root of C: and tried installing 
again. This made it work.

If you're curious on how I made a junction on windows xp, see the following:
http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 10:31

Finding element by partial id

Operating system : Win7
.Net Framework version : 2.0.7045
Office Version : 2003
SeleniumWrapper version : 1.0.11.0

Please could you provide sample VBA code, that will allow me to type in a field 
knowing only it's partial id.

For example:

  selenium.Type "id=OptionListControl__optionLeg4241e47e-1f84-48a3-b06e-9bcb766366e1__TextBoxNotional", "1500000"

Will not work because the middle 
"optionLeg4241e47e-1f84-48a3-b06e-9bcb766366e1" part is generated at random 

Pls could you provide universal code, I believe, using "contains" command?


Original issue reported on code.google.com by [email protected] on 20 Aug 2013 at 5:51

Problem after Installing Wrapper 1.0.10

Operating system : XP SP2
.Net Framework version : 3.5
Office Version : 2007
SeleniumWrapper version : 1.0.10

What steps will reproduce the problem?

1. In Excel VBA start Firefox with ans Internetpage
for example:  selenium.Start "firefox", "http://www.spiegel.de/"

2. Firefox opens but no Internetpage

3. even after reinstalling to 1.0.9 this Problems exists

Before installing Version 1.0.10 this Pacgae works really fine.

Regards
Christian


Original issue reported on code.google.com by [email protected] on 20 Feb 2013 at 9:48

How can i open a new tab in already opened firefox

Operating system :win 7
.Net Framework version :latest
Office Version : 007
SeleniumWrapper version : last

What is your issue ?

How can i open a new tab in already opened firefox, im using vbs.please help.

Original issue reported on code.google.com by [email protected] on 30 Dec 2013 at 1:02

How to select an option from a drop down

Operating system : Win 7
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : 2.39.0

What is your issue ?

Hello, I'm looking at selecting an option from a drop down and i didn't find 
how to select an option from the list with the value reference. Example, i 
would like to select "Valeur 2" with the value reference "value2". Please help 
me thanks :

<select name="select">
  <option value="value1">Valeur 1</option> 
  <option value="value2">Valeur 2</option>
  <option value="value3">Valeur 3</option>
</select>


Original issue reported on code.google.com by [email protected] on 29 Jan 2014 at 11:01

iwebdriver object must implement a wrap driver

Operating system and version (32/64bit) :
.Net Framework version :
Office name and version(32/64bit) :
Browser name and version :
SeleniumWrapper version :

What steps will reproduce the problem with a public website ?

hello please note that with the new wrapper version i get the following error 
in excel when i run a program.
Please have a look at the screenshot attached.



Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Oct 2013 at 4:29

Attachments:

VBA runs successfully only once in FireFox 16.0.1

Operating system : Windows XP SP3
.Net Framework version : 3.5 SP1
Office Version : 2010
SeleniumWrapper version : 1.0.6.2

FireFox version : 16.0.1

What steps will reproduce the problem?
1. In Excel VBE, run the Example code.
2. Wait until it stops
3. Run the code again

Firefox Window pops up again but nothing happens, and later Excel says timeout.

Original issue reported on code.google.com by [email protected] on 21 Oct 2012 at 6:21

Formatter: pause not supported

When exporting scripts from Selenium IDE, the formatters do not convert the 
pause command into a usable method in VBA/VBS.

Attached file was exported from Selenium IDE using the formatter. Running the 
script produces a Windows Script Host error:

"
Object doesn't support this property or method: 'pause'
"


Original issue reported on code.google.com by [email protected] on 6 May 2012 at 4:29

Attachments:

How could i clear the clip board

Operating system and version (32/64bit) : 64
.Net Framework version :
Office name and version(32/64bit) : 64
Browser name and version :Google chrome
SeleniumWrapper version :latest version 

I was wanting to clear the clip board in my Google chrome window it seems to 
only paste the the first text i copied regardless of what was copied afterwards.

Was using the html code but it did not work on a certain text box. so i 
resorted to the shell.SendKey.

Original issue reported on code.google.com by [email protected] on 14 Jan 2014 at 10:57

CaptureEntirePageScreenshotAndWait And CaptureEntirePageScreenshot is not working

Operating system and version (32/64bit) :
.Net Framework version :
Office name and version(32/64bit) :
Browser name and version :
SeleniumWrapper version :

What steps will reproduce the problem with a public website ?
1. go to any website using firefox ide
2. use captureEntirePageScreenshot or captureEntirePageScreenshotAndWait and 
set the target in a folder (ex: 
C:\\Users\\me\\Documents\\Screenshot\\image1.jpg)
3. run the vba code that you get from the source tab in selenium ide into vba 
Excel

What is the expected output? What do you see instead?

the picture should be saved in the path

Please provide any additional information below.


once the code is generated we get an error message in vba excel saying: 


Original issue reported on code.google.com by [email protected] on 18 Sep 2013 at 8:15

Attachments:

Visual Basic.net

Operating system :  Windows XP
.Net Framework version :  4.0
Office Version :  2003/2010
SeleniumWrapper version : 1.0.11.0

What is your issue ?  Is there a way to use this VB Wrapper in Visual Basic 
2010?  

Original issue reported on code.google.com by [email protected] on 17 Apr 2013 at 8:20

getScreenshot ().copy sometimes doesnt't work

Operating system : Windows XP SP2
.Net Framework version : 3.5
Office Version : 2010
SeleniumWrapper version : 1.0.10

What is your issue ?
Most of the times the "getScreenshot().copy" Function works very fine. But in 
some cases there is no Screenshot I can`t tell you when its seems randomly. Is 
there something I could look for? Its really important for me and its a pity 
that this getScreenshot doesn't work everytime.
Your example on your Page always works fine even on my PC :-)


Original issue reported on code.google.com by [email protected] on 19 Mar 2013 at 2:17

SendKeys with Chrome Browser VBA

Operating system : Windows 7
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : latest one

Browser name and version : chrome 32.0.1700.102 m
SeleniumWrapper version : 1.0.17
ChromeDriver: 2.9

The problem:

Run code below on vba in Excel 2010

Public Sub newtab()
  Dim driver As New SeleniumWrapper.WebDriver
  Dim Waiter As New Waiter
  Dim keys As New SeleniumWrapper.keys

  driver.Start "chrome", "http://www.w3schools.com/"
  driver.Open "/"
  Waiter.Timeout = 60000

  driver.SendKeys keys.Control, keys.Tab
  driver.Open "/web/default.asp"

  driver.SendKeys keys.Control, keys.Tab
  driver.Open "/web/web_css.asp"

  driver.Stop

End Sub


The chrome browser should open 2 new tabs and access the url's on each one of 
them.

But Chrome ignores SendKeys commands and access all url's in the same tab, one 
after one until the end.

This same code works perfectly in Firefox.

Anyone, how to solve that ? 

I really need to use Chrome.

Original issue reported on code.google.com by [email protected] on 3 Feb 2014 at 6:25

Takes a long time for verifyelementpresent and assertelementpresent and eventually failed

Operating system :Windows XP SP3
.Net Framework version :3.5 SP1
Office Version :2010
SeleniumWrapper version :1.0.6.3

What steps will reproduce the problem?

Public selenium As New SeleniumWrapper.WebDriver
Sub Test()
selenium.Start "firefox", "http://bing.com"
selenium.Open "/"
MsgBox selenium.verifyElementPresent("//tr/td[@value='google']")
End Sub

What is the expected output? - True or False.
What do you see instead? - timeout.

Please provide any additional information below:
It happens on verifyelementpresent, assertelementpresent, verifytextpresent, 
asserttextpresent, verifytext, asserttext...

Original issue reported on code.google.com by [email protected] on 21 Dec 2012 at 6:06

How to hide browser & run operations on that hidden browser.

Operating system :win 7
.Net Framework version :latest
Office Version :
SeleniumWrapper version :latest

What is your issue ?

Hello,
First of all thank you very much for selenium vba.

I want to know, Is it possible to hide browser while running the test and run 
operation on that hidden browser. like clicking on a link,login in a site , 
extract text etc by not showing operations on browser to user. i want to 
completely hide the browser.

If so, Can you please show me a working example in vbs .


Thanks in advance.
Waiting for your reply.



Original issue reported on code.google.com by [email protected] on 21 Jan 2014 at 8:34

How to do parallel runs on remote machines

Operating system :
.Net Framework version :3.5 and 4.0
Office Version :2003,2007,2010
SeleniumWrapper version :2.32

What new feature do you need?
Can the current version support parallel test runs on remote machines as 
supported by Selenium grid?
If so can you give us some examples how to do it?
An example of use ?
1.In the Selenium Java version we have Web Driver and Selenium Grid combined to 
perform parallel test runs on different remote machines.
How to do this in Selenium-vba.

The reason I ask this question is, I am excited about Selenium-vba but this is 
a critical requirement for my project.If this feature available then I can move 
my vbscript based test automation engineers to Selenium-vba. Else I have to 
train them on Java development or recruit new java developers. This can help me 
a lot to reuse my test resources.
Venkatesen

Original issue reported on code.google.com by [email protected] on 13 Jun 2013 at 3:43

Image function 'compareTo' unrecognized

Operating system and version (32/64bit) : 32bit
.Net Framework version : v4.0.30319
Office name and version(32/64bit) : Office 2007
Browser name and version : Firefox 26.0
SeleniumWrapper version : 1.0.17.0

What steps will reproduce the problem with a public website ?

The example 'VBS Script example : Compare two web pages' from the project 
homepage gives an error:

=> Code: imageA.compareTo(imageB).saveAs "diff.png" 'Compares images and save 
the result

=> Error: Erreur d'exécution Microsoft VBScript: Cet objet ne gère pas cette 
propriété ou cette méthode: 'imageA.compareTo'

Function 'compareTo' seems unrecognized for object created by 'Set imageA = 
driver.getScreenshot()'.

Original issue reported on code.google.com by [email protected] on 21 Jan 2014 at 4:56

use different browsers

First of all complements on the Wrapper plugin for vba. It works great for me. 
But I have a question.

Firefox is started with the VBA command selenium.start "firefox"
but when I change it to selenium.Start "IE" is does not work.
Is it possible to start chrome or IE with this VBA command and what do I need 
to do to make this work?

On the site of Selenium there is a lot of info but I am sure how all this 
information compares to VBA. There are no example on selenium and VBA only your 
Wrapper. 


Greetings Roger


Original issue reported on code.google.com by [email protected] on 7 Jun 2013 at 6:49

Selenium vba cant click on button or link

Operating system :
.Net Framework version :last
Office Version :last
SeleniumWrapper version :last

What is your issue ?

I was trying to click on a link and a button, also tried on clicking google 
result link, doesn't work.it also not working on wordpress login button. im 
usung firefox 26 

Here is a sample code which suppose to click on a button.its not working , but 
its working on ie.i need it to work in firefox

  selenium.open "http://www.perfectseotools.com/free-article-rewriter/default.aspx"
  selenium.selectWindow "Free Article Rewriter | Perfect SEO Tools"
  selenium.type "id=txtText", "" & forspin & ""
  selenium.clickAndWait "id=btnSubmit"
  WScript.sleep 5000
  spinedtext = selenium.getText("css=div.blk-content")



please help

Original issue reported on code.google.com by [email protected] on 6 Jan 2014 at 12:07

Capturing Screenshots to JPEG file

Operating system : Win7
.Net Framework version : 2.0.7045
Office Version : 2003
SeleniumWrapper version : 1.0.11.0


Could you please provide example of VBA Code to capture Screenshot and save it 
as JPEG file.

Below is a code example from your homepage saving Screenshots as PDF files. 
This is exactly what I would possibly need, except for saving as JPEG file. 
Also one screenshot per file is absolutely fine.

Set selenium = CreateObject("SeleniumWrapper.WebDriver")
Set pdf = CreateObject("SeleniumWrapper.PdfFile")
selenium.start "firefox", "http://www.google.com"
selenium.open "search?q=eiffel+tower"
pdf.addImage selenium.getScreenshot(), "Google search - Eiffel tower"
selenium.open "http://maps.google.com/maps?q=eiffel+tower"
pdf.addImage selenium.getScreenshot(), "Google map - Eiffel tower"
pdf.saveAs "c:\selenium-capture.pdf"
selenium.stop

Many thanks in advance

Original issue reported on code.google.com by [email protected] on 14 Apr 2013 at 12:38

Locator by ID

Operating system : 7 Pro
.Net Framework version :
Office Version : 2013
SeleniumWrapper version : 1.0.16.0

What is your issue ?

I have a site that has two fields that I need to type into. The only tags 
within the HTML are type="text" and name="username". The issue is there are two 
fields with the same name on the page. So I need to type into the .Item(2) one. 
I can set the element to a declared variable, but can not figure out how to 
type into the Nth. 

When I type: chr.Type "name=username", "value" it tries to type into the first 
index, but I need it to type into the second index. 

Thanks in advanced for you assistance


Original issue reported on code.google.com by [email protected] on 11 Dec 2013 at 3:39

Reusing / Sharing one session using Selenium Webdriver with multiple Subroutines

Operating system : Windows Vista + Firefox 12.0
.Net Framework version : 3.5
Office Version : 2003
SeleniumWrapper version : 1.0.5.1

What steps will reproduce the problem?
1. I am running a test that requires me to log in to my account. I recorded 
this macro, say Sub1, using IDE.
2. After Sub1 is finished I am unable to do any more operations on my account, 
as another Macro, say Sub2, only works if I open a new Selenium Session, log in 
again and run additional code.

What is the expected output? What do you see instead?

I would ideally like to run a Sub 2 from the point where Sub 1 has finished, 
reusing the currectly opened Selenium Webdriver session.

Please provide any additional information below.

Pls could you provide a piece of code with 2 Subs, where the second Sub is able 
to continue from the point where Sub 1 has finished, without the need to open a 
new session (or log in again, as in my case). 

In other words, using a very simple example:

'Sub1 opens a session and loads google.com
Public Sub1()
   Dim selenium As New SeleniumWrapper.WebDriver
   selenium.start "firefox", "http://www.google.com/"
   selenium.open "http://www.google.com"
   selenium.stop
End Sub

'I would like now Sub2 to open yahoo.com page at the same session as one opened 
by previously by Sub1. I made up Continue key word, but this is what I would 
exactly need.

Public Sub2()
   selenium.CONTINUE "firefox", "http://www.google.com/"
   selenium.open "http://www.yahoo.com"
   selenium.stop
End Sub

Original issue reported on code.google.com by [email protected] on 5 Jun 2012 at 11:01

ChromeDriver Capabilities/ChromeOptions with Selenium-VBA

Hello,

Thank you very much for creating this wrapper, it works wonderfully well. I 
just have one question I was wondering if you could help me out with.

Is it possible to run the wrapper with chromedriver browser using specific 
chrome command line arguments, and if so, then how? I see that the Capabilities 
for chromedriver are set out here: 
https://sites.google.com/a/chromium.org/chromedriver/capabilities but I'm not 
sure how to implement it in VBA code since I am sort of a beginner programmer. 
More specifically, I'm trying to find out how to use selenium in my default 
chrome profile (user-data-dir) as well as using the webdriver proxy capability. 
The examples can be seen at the ChromeDriver website.

If you could point me in the right direction, I would be very grateful.

Original issue reported on code.google.com by [email protected] on 31 Oct 2013 at 7:09

waitforpopup not compiling

Operating system :
.Net Framework version : 4
Office Version : Excel 2007
SeleniumWrapper version : 1.0.8.0

What steps will reproduce the problem?
code used is;
dim rc as integer
Dim selenium As New SeleniumWrapper.WebDriver

rc = selenium.waitForPopUp("Booking", "300")

To wait for a popup called 'booking'

What is the expected output? What do you see instead?

Expected is for the code to run, but I get 'Expected Function or variable' 
instead. Because Excel won't allow the code to run I don't know whether the 
function itself is ok or not.


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 11 Feb 2013 at 12:40

Manipulating controls in an already opened web page

Operating system : win 7
.Net Framework version :4.5.50938
Office Version :2010 (14.0.7109.5000) SP2 MSO (14.0.7106.5003)
SeleniumWrapper version : 1.0.17.0

What is your issue ?

I will keep several web pages opened in my computer and under certain condition 
my vba code will pick up one and execute some operations on it (click on 
buttons, fill text box, etc). So, my first question: How can I identify these 
opened web pages in order to pick up the right one? The second question: Is it 
possible to avoid “selenium.Start” in my code, since the web browser is 
already opened? 
Thank you in advance.

Original issue reported on code.google.com by [email protected] on 26 Jan 2014 at 1:29

Pressing keyboard keys (Esc, Enter)

Operating system : Win7
.Net Framework version : 2.0.7045
Office Version : 2003
SeleniumWrapper version : 1.0.11.0

Please could you provide sample VBA code, that will simulate physically 
pressing keyboard keys (ESc, Enter) and possibly also instruction how other 
keys can be pressed.

Original issue reported on code.google.com by [email protected] on 6 May 2013 at 8:30

Proxy Settings

Operating system : Win7
.Net Framework version : 2.0.7045
Office Version : 2003
SeleniumWrapper version : 1.0.11.0

Please could you provide sample VBA code, how to configure proxy settings for 
Selenium Session?

For example:
I have proxy address together with a port number (yy), say:
xxx.xxx.xxx.xxx:yy

I would like Selenium to connect to the internet via this proxy.

To check that everything is configured correctly I would then use selenium to 
go to any IP lookup site and see that my IP is indeed xxx.xxx.xxx.xxx

Original issue reported on code.google.com by [email protected] on 1 May 2013 at 8:44

"Get current address" & selenium.getAttribute help request

Operating system : Win7
.Net Framework version : 2.0.7045
Office Version : 2003
SeleniumWrapper version : 1.0.11.0

1) Pls could you provide sample VBA code that will retrieve underlying link for 
a given cell in a table?

I was trying to use the following code, but with no luck :
selenium.getAttribute("xpath=//table[1]//tr[1]/td[1]@href")
(I get blank value)

2) Pls could you also provide sample VBA code that will return current 
http://www address as per address bar in the browser?
following the command:
selenium.Open "https://www.google.com"
"Selenium.getAddress" should return "https://www.google.co.uk", for example if 
get redirected to .co.uk domain


Original issue reported on code.google.com by [email protected] on 11 Jun 2013 at 12:04

Errors handling while running Subroutines with Selenium Webdriver


1) Is there a way to handle Timeout errors connected to Selenium macros?

I occasionally get the following error, mostly caused by poor internet 
connection or issue with Mozilla:

    Run-time error'-2146232832 (80131600)':

    Method <start> failed ! Timeout reached.

http://imageshack.us/photo/my-images/444/problemkd.jpg/

Pls could you provide example of code repeat the last selenium command that 
caused the timeout error after say 10s?




2) There was a number of times that Selenium Crashed when I tried to run a 
command that simply was invalid, 
- instead I would like Excel to skip this line, and carry on with remaining 
code.

Pls consider the following example:

I am sometimes having to close confirmation pages, ( by running selenium.Click 
"css=input.bossubmit" ) 
but don't know how many of them I need to click on Sometimes I need to on 1, 
sometimes 2, sometimes none of the confirmations.



However trying to close the confirmations in a loop as below causes the Excel 
to crash:

  For i = 1 To 2

  selenium.Click "css=input.bossubmit"

  On Error GoTo finish
  Next i

finish:

Pls could you provide a piece of code how to handle this problem?


Original issue reported on code.google.com by [email protected] on 15 Aug 2012 at 10:24

Selenium on Internet Explorer

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 [email protected] on 21 Feb 2013 at 11:03

Problem with findElementById method

Operating system and version (32/64bit) : XP SP3 (32bit)
.Net Framework version :
Office name and version(32/64bit) :
Browser name and version : Firefox 26
SeleniumWrapper version : 1.0.17.0

First, I would like to thank you for SeleniumWrapper. It is excellent tool !
1. Me tried to edit your QuickTest.vbs file in order to access text in input 
element but it doesnt work as me expected

Dim selenium, mytext
Set selenium = CreateObject("SeleniumWrapper.WebDriver")
......
' mytext = selenium.getValue("lst-ib")
mytext = selenium.findElementById("lst-ib").Text
wscript.echo "Searched for: " & mytext  
selenium.stop

What is the expected output? What do you see instead?
The empty string was returned by
 selenium.findElementById("lst-ib").Text

if i use mytext = selenium.getValue("lst-ib") it works and "Eiffel tower" is 
returned

2. I tried to use WebElement like this:
Dim selenium, element, mytext
Set selenium = CreateObject("SeleniumWrapper.WebDriver")
Set element = CreateObject("SeleniumWrapper.WebElement")
element = selenium.findElementById("lst-ib")
mytext = element.Text

it crashed with "ActiveX component can't create object 
"SeleniumWrapper.WebElement". 
BTW, i dont see SeleniumWrapper.WebElement entry in registry.

Could you please provide your expert opinion ?

Thanks in advance !


Original issue reported on code.google.com by [email protected] on 29 Dec 2013 at 12:13

Attachments:

isTextPresent unhandled exception

using version 1.0.5

every once in awhile the function isTextPresent raises an unhandled exception 
and I don't know why. I've got an input box asking for user input and I handle 
the case where the user enters nothing. The exception appears to tell me that 
I've supplied null to the function but that isn't really possible so I'm lost.

Is there a way for me to attach the debugger in Visual Studio 2008 to the 
running firefox called by my script? I was trying to step through everything 
but keep running into "no sourcecode available" messages when the debugger gets 
to the variable containing the seleniumwrapper.webdriver instance.

Original issue reported on code.google.com by [email protected] on 18 May 2012 at 5:26

findElementById is throwing an error in version 1.0.16.0

Operating system : Win 7 - 64 Bit
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : 1.0.16.0

What is your issue ?
I had the following code, which was working fine in version 1.0.14.0. I am 
using this to capture all options in a dropdown in objCollection:-
objCollection = 
driver.findElementById("test_id").findElementsByTagName("option")

But the line throws an error after I upgrade to version 1.0.16.0
Error - Run-time Error '5': Invalid procedure call or argument

Pls let me know whether I need to modify my code or is this a bug?

Original issue reported on code.google.com by [email protected] on 11 Dec 2013 at 7:58

how to get parentnode and childnodes ?

Operating system :
.Net Framework version :
Office Version :2010
SeleniumWrapper version : latest

What is your issue ?
Hello ,

how can i get the parentnode and childnodes with seleniumWrapper ?

for example how can i do this 

document.getElementById("Account_body").getElementsByTagName("a")[2].parentNode;

or

document.getElementById("Account_body").getElementsByTagName("a")[2]childNodes;

Thanks.

Original issue reported on code.google.com by [email protected] on 14 Oct 2013 at 12:16

How to maximize browserwindow ?

Operating system : Windows XP SP3
.Net Framework version : 3.5
Office Version : 2007
SeleniumWrapper version : 1.0.10

What is your issue ?

Is it possible to maximize the browserwindow while using the webdriver?
Making screenshots on the small window doesn`t make much sense for my 
workingproject.
It would be nice if you could help me to max the browserwindow.

Best regards
Christian

Original issue reported on code.google.com by [email protected] on 20 Feb 2013 at 2:34

setPreference not working any more with newest version

Operating system : Windows 7, 64bit
.Net Framework version : 4.03
Office Version : 10
SeleniumWrapper version : 1.0.7.0

What steps will reproduce the problem?

Dim selenium As New SeleniumWrapper.WebDriver  
selenium.setPreference "browser.download.folderList", 2

What is the expected output? What do you see instead?

Selenium should start Firefox. Instead I get error 438. "Object doesn't support 
this property or method."

It worked with the 1.0.6 builds, but stopped with 1.0.7.


Original issue reported on code.google.com by [email protected] on 17 Dec 2012 at 9:42

Set timeout for open

Operating system : Windows 7 64bit
.Net Framework version :
Office Version : 12
SeleniumWrapper version : 1.0.6.1

This there any possibility to set the timeout for open? It defaults to 30 
seconds but thats not enough for me in some cases. I read about 

selenium.setTimeout "40000"

but that doesn't work.

Thanks!

Original issue reported on code.google.com by [email protected] on 16 Oct 2012 at 1:24

Error

When running the quick test I get an error:

"
The exception unknown software exception (0xc0000409) occurred in the 
application at location 0x057aaed8
"

By changing the browser to Firefox I do not get the error and the QuickTest.vbs 
performs as expected.

The script seems to error on line 13, of the attached copy, when trying to use 
"Selenium.type" in Internet Explorer.

Attached is a copy of the QuickTest.vbs for future reference.

Original issue reported on code.google.com by [email protected] on 6 May 2012 at 4:17

Attachments:

how to simulate CTRL+S in a web page

Operating system : windows
.Net Framework version :
Office Version :2010
SeleniumWrapper version :latest version

What is your issue ?

In a webpage , i would like to simulate a CTRL+S
followed by Enter 
how can i do that.
Many thanks

Original issue reported on code.google.com by [email protected] on 9 Oct 2013 at 8:58

Getting Automation Error while executing the VBA code

Public Sub TC001()
  Dim selenium As New SeleniumWrapper.WebDriver
  selenium.Start "firefox", "http://www.google.co.in/"
  selenium.Open "http://www.google.co.in"
  selenium.Type "name=q", "Eiffel tower"
  selenium.Click "name=btnG"
  selenium.stop
End Sub


Run the above code in Excel VBA

Actual Result:-

Getting Automation Error in line:-
selenium.Start "firefox", "http://www.google.co.in/"


Info: I am using:-
OS: XP
Office: Microsoft Excel 2000

Original issue reported on code.google.com by [email protected] on 13 Apr 2012 at 7:31

Using variable inside gettext()

Operating system :win 7
.Net Framework version : latest
Office Version :2007
SeleniumWrapper version :last

What is your issue ?
Hello,
Im trying to pass the counter variable i inside 
selenium.getText("//html/body/div[2]/div[2]/div[2]/div/div/div/div[""i""]")

but its only getting correct for the 1st time and not incrementing inside 
gettext() 

Im using for loop ,please check the following code and help.



Dim selenium
Dim ok
Set selenium = CreateObject("SeleniumWrapper.WebDriver")
selenium.start "firefox", "http://www.wikihow.com/"
selenium.setImplicitWait 5000

selenium.open "/Make-Money"
For i=1 To 5
  MsgBox(i)
  ok = selenium.getText("//html/body/div[2]/div[2]/div[2]/div/div/div/div[""i""]")
  MsgBox (ok)
Next
MsgBox "Done"

selenium.stop

Original issue reported on code.google.com by [email protected] on 30 Dec 2013 at 12:41

Firefox 13 will not start

When attempting to start Firefox 13 nothing happens. Selenium has been updated 
and this issue has been resolved. I would try building this from source with 
the updated version of Selenium but I've got to leave for work.

From: http://selenium.googlecode.com/svn/trunk/dotnet/CHANGELOG

"
v2.23.0
=======
 * Removed the embedded IE server from the .NET bindings. From now on, you 
   *must* use the IE standalone server with .NET.
 * Removed unneeded polling for parent.lock file on anonymous Firefox profile
   in temp directory.
"

There are also some notes about the Internet Explorer Driver Server mentioned 
on http://seleniumhq.org/download/ I don't know if it will complicate things 
for you or not.

Original issue reported on code.google.com by [email protected] on 11 Jun 2012 at 11:04

"SafariDriver not yet implemented. Use remote driver insted" but Remote or Grid does not work either?

Operating system and version (32/64bit) : Windows 7 64bit
.Net Framework version : v4.0.30319
Office name and version(32/64bit) : Office Professional Plus 2010 32bit
Browser name and version : Safari 5.1.7
SeleniumWrapper version : v1.0.17.0

What steps will reproduce the problem with a public website ?

1. driver.start "safari", "http://www.google.com"

>>>> That's 'normal' I guess :)
Gives error: 
SeleniumWrapper: SafariDriver is not yet implemented. Use remote driver insted.

2.a As message says 'Use remote driver insted.', trying on remote control:

Gives error:
SeleniumWrapper: Remote browser <safari> is not available !
Choose between Firefox, IE, Chrome, HtmlUnit, HtmlUnitWithJavaScript,
Android, IPad, Opera, PhantomJs

Shouldn't Safari be accepted here?

2.b Trying with grid:

Running hub then a Safari node
java -jar E:\selenium\selenium-server-standalone-2.37.0.jar -role hub
java -jar E:\selenium\selenium-server-standalone-2.37.0.jar -role node -hub 
http://localhost:4444/grid/register -browser browserName=safari

VBS command
driver.startRemotely "safari", "http://localhost:4444/wd/hub", 
"http://www.google.com"

Command startRemotely gives error:
SeleniumWrapper: Remote browser <safari> is not available !
Choose between Firefox, IE, Chrome, HtmlUnit, HtmlUnitWithJavaScript,
Android, IPad, Opera, PhantomJs

What is the expected output? What do you see instead?

I expected Safari to work with RC or Grid.

Please provide any additional information below.

As startRemotely is written actually (see switch case in source code), Safari 
can't be work either in RC or Grid.
(Or maybe I make a mistake somewhere in my code)

Original issue reported on code.google.com by [email protected] on 14 Jan 2014 at 10:17

unknown error: unable to discover open pages

Operating system : 7 Pro
.Net Framework version :
Office Version : 2013
SeleniumWrapper version : 1.0.16.0

Hey guys, 

I have been using Selenium VBA for about a month now, and only today started 
getting the following error. 

Any ideas? 

VBA Code: (Error is caused on line 3)
1:    Dim chr As SeleniumWrapper.WebDriver
2:    Set chr = New SeleniumWrapper.WebDriver
3:        chr.Start "chrome", "http://www.google.com"

Error: -2146233079
 unknown error: unable to discover open pages 
  (Driver info: chromedriver=2.4.226107,platform=Windows NT 6.1 SP1 x86_64) 

Original issue reported on code.google.com by [email protected] on 15 Jan 2014 at 2:15

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.