Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
The text typed in an input is stored in the attribute named "value" and not as 
inner text (see by yourself the html source).
That's why there is no text returned in your case.
The equivalent to getValue("id") is findElementById("id").getAttribute("value").

Here is an example :
Set driver = CreateObject("SeleniumWrapper.WebDriver")
driver.start "firefox", "http://www.google.com"
driver.open "/"
driver.type "name=q", "Eiffel tower"
driver.keyPress "name=q", "\13"
wscript.echo driver.getValue("name=q")   'Selenium 1
wscript.echo driver.findElementByName("q").getAttribute("value")     'Selenium 2

Original comment by florentbr on 29 Dec 2013 at 1:11

  • Changed state: Accepted
  • Added labels: Type-Support
  • Removed labels: Type-Defect

from selenium-vba.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
findElementById("id").getAttribute("value") works ! Thank you !

Am i right - object SeleniumWrapper.WebElement is not registered ? Therefore  
Set element = CreateObject("SeleniumWrapper.WebElement")
is crashed with "ActiveX component can't create object 
"SeleniumWrapper.WebElement". 

Original comment by [email protected] on 30 Dec 2013 at 8:38

Attachments:

from selenium-vba.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024

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

  • Changed state: Done

from selenium-vba.

Related Issues (20)

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.