Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7640989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:48:34+00:00 2026-05-31T08:48:34+00:00

I have a div in an html page like the following: <div id=save_one onclick=save_one()

  • 0

I have a div in an html page like the following:

<div id="save_one" onclick="save_one()" >Save Contact Info</div>

save_one() gets all the form data in a form below and saves using an ajax call.

Clicking the div ought to save the contents, and it does using a mouse, but I’ve
been unable to get it to work with Selenium.

The page has an

<img onclick='edit_table()'> 

that when clicked opens the table
to be edited as a form. I’m able to do that with selenium. I’m also able to
update the form with new data using Selenium.

When attempting to submit it using the div shown above it fails unless I extract the
script from the .js file and run it with Selenium using:

$sel->get_eval( $js_save_one );   # $js_save_one is the js sub in a string in the perl 
                                  # test file

Is it the case that selenium only handles certain Javascript functionality? If that is
not the case, anyone know why this would not operate as it does using the mouse?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:48:36+00:00Added an answer on May 31, 2026 at 8:48 am

    Using the Selenium firefox extension, it can create the code for whatever language you are using to run selenium through and it will tell you how to do this. Basically though there is a function for clicking a button/image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html file like following: <form action=/2811457/follow?gsid=3_5bce9b871484d3af90c89f37 method=post> <div> <a href=/2811457/follow?page=2&amp;gsid=3_5bce9b871484d3af90c89f37>next_page</a> &nbsp;<input
I have a html page with a form. The form has Div which gets
I have simple HTML page with svg like this: <div id=plan> <svg xmlns=http://www.w3.org/2000/svg version=1.1>
I have an HTML page that roughly looks like this: <div id=rolesRollerBody style=height: 309px;>
In the following HTML page, I have a div, which contains two spans (
in my html page, I have the following: <div id=rub> Select at least one
I have the following elements in a HTML page: <body> <div style=height:100%; width:100%> <div
I have the following index.html page set-up: <html> <head> </head> <body> <div id=container> <div
I have an HTML page like: <html> <head><title>Hello</title></head> <body> <div id=foo> <h6>9</h6> <h6>3</h6> <h6>5</h6>
I'm facing the following problem: I have my index.html page, with a div#content. Within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.