Solved

need help getting selenium to push 2 buttons on a webpage

Posted on 2015-01-26
3
106 Views
Last Modified: 2015-03-04
I am formatting a macro I recorded in selenium both ways with vbs and vba and it keeps erring out. Partly bcuz it keeps opening up a new instance fo firefox which then requires a new login. Is there a way to get vba or vbs too work sellenium on a previously opened web browser?
Are then any good free macro recorders for web pages I need to automate two simple webpage link mouseclicks they are
driver.findElementById("download").click
driver.findElementByCssSelector("button.png-download-btn").click
0
Comment
Question by:Dov_B
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Craig Kehler
ID: 40626291
Have you tried the Selenium IDE Add-on for firefox? http://www.seleniumhq.org/projects/ide/

You can record a macro and play it back. You can also export those recorded tests for use in WebDriver.
0
 

Author Comment

by:Dov_B
ID: 40627215
yeah I exported it to vba and it throws an error when run from excel I also added the reference to the vba project it manages only to open the site then errs out
0
 
LVL 6

Accepted Solution

by:
Craig Kehler earned 500 total points
ID: 40627247
Ah I see, you want it to use a currently open browser and run from excel. The IDE would handle only the latter part of that.

I'm guessing you don't want to automate the login. There is no way to "hijack" a currently running browser and they closed out the feature request as "not feasible". https://code.google.com/p/selenium/issues/detail?id=18&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary

You might be able to accomplish it using the IDE in an already authenticated browser and writing out what data it gathers to a file that is read into excel.

Sorry, I don't have a lot of experience with selenium in excel I mainly use the java variant to test web pages. I just hate to see these automation questions sit neglected.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question