I want to click the selenium (python) button on javascript in the following URL in Internet Explorer.
http://netspeed-tokyo.studio-radish.com/speedtest.html?mode=rw&precision=hi&type=l
How can I click it?
-
Answer # 1
-
Answer # 2
I think onclick = "xxxxxxxx" is written at the button.
It works if you run javascript directly on selenium.
You can copy and paste the entire area surrounded by "".driver.execute_script ("xxxxxxxx")
-
Answer # 3
To click the button provided by javascript, selenium must have been impossible ...
When I had the same problem before, I installed "PhantomJS" and managed it using the following. (First, install PhantomJS)
from selenium import webdriver url = http://netspeed-tokyo.studio-radish.com/speedtest.html?mode=rw&precision=hi&type=l # Start PhantomJs in Internet Explorer driver = webdriver.Ie () # access url driver.get (url) # Find the element properly and click driver.find_element_by_something ("button"). click ()
If you do this, you can also click the javascript button
...... But this example page uses a Java applet, so I don't know if it works properly.
By the way, my environment didn't move because JAVA was not included in the first place.
Related articles
- javascript - i want to click the vba scraping 3-point button
- how to click only when a specific button is present in python scraping
- i don't understand the exercises using python trigonometric functions
- about data acquisition using python from becoming a novelist
- javascript i want the color to change when i click on a post
- javascript - displaying table using map does not work
- i want to adjust the execution result using the while statement in python as expected
- javascript - display how many numbers are the same entered using if
- python - i want to put the image file path in a variable and open it using that variable
- javascript - i want to update the id when the delete button is pressed in the todo list
- i want to output the contents of form to a file using javascript
- python - aggregation processing using pandas
- javascript - how to get multiple jquiry radio button values
- specifying the range of the graph using python date
- python - about the fibonacci sequence using recursion
- javascript - i want to switch the display/non-display of the button on the same line according to the url description of href
- php - when javascript is set for the button set between form tags in laravel6, it malfunctions
- javascript - i want to switch the task display using the radio button
- python - how to install django using requirementstxt and pip in virtual environment
- python - about deep learning programs using keras
- changing the time zone of the Сhrome Selenium python web driver
- python : Error while deploying "git push heroku master"
- python selenium how to use proxy
- python : The button "next" in Instagram on SELENIUM is not pressed
- python : Selenium does not work correctly with Firefox
- Is it possible to get the values of variables of a web page in Selenium (Python)
- python : Beautifulsoup + Selenium parser does not parse elements from the entire scrolling page (infinite scroll)
- Python Selenium Firefox popup
- python : Parsing a dynamic table
- python : I don't know how to specify a filename when downloading a file from Selenium using Chrome
As you may already know, I happened to find this question and write it down.
You can click the javascript button with just selenium.
First, get the element by tag or something, and get the coordinates of the target element.
Click that coordinate using ActionChains.
I put a reference code below.