Home>
Click the "More" button on the page, and click
I want to display an item.
<span>See more faculties, departments and courses</span>
I examined the following code, but the button itself does not disappear, so
Clicking and opening/closing in the same place will be repeated endlessly.
while True:
try:
elem = driver.find_element_by_class_name ('__ shi_m_btn_more')
elem.click ()
except NoSuchElementException:
break
I tried to think that it would be possible to respond with the for sentence that you advised.
# We confirmed that you can click the first corresponding element below.
elem = driver.find_element_by_class_name ('__ shi_m_btn_more')
elem.click ()
# #There are four such elements in the page.
elems = driver.find_elements_by_class_name ('__ shi_m_btn_more')
len (elems)
Four
#I want to click on four elements that exist on the page
for elem in elems:
elem.click ()
# Error occurred
ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at point (600, 696). Other element would receive the click: ...
(Session info: chrome = 78.0.3904.97)
I would be grateful if you could give me any advice on how to solve it.
Thanks for your cooperation.
-
Answer # 1
-
Answer # 2
button that you can go now.
If you know that, if you confirm in the code that the change has occurred, you should get the next element, and then click again when you have finished. -
Answer # 3
I think you can see that this is the last page.
Let's check it.
Related articles
- python - [selenium] click the radio button
- python - [selenium] i want to click the dropdown, but an error is returned
- python - about pythinista3 selenium browser controls
- python - selenium: element specification an error occurs in the code that can be executed once
- python - open another tab of selenium
- python selenium data extraction error
- python - how to get "job description" of hello work with selenium
- [python] i can't open a new firefox tab in selenium a new window will open
- python 3x - button execution action in tkinter when executing code
- some elements cannot be clicked in python selenium (chrome)
- website button clicks in selenium and python
- python - i'm using selenium the text sent by send_keys to the input tag disappears when the text is sent by send_key to the next
- about moving to another page with python selenium
- python - error when scraping with selenium and firefox
- i want to click and number a few images like a switch in python
- python: about loops in leap motion programs
- python - i want to get multiple elements with selenium
- python - in selenium, i want to log in if the chromedriver is not open, and jump directly to the page after login if it is open
- python - i want to use selenium using docker
- how to click only when a specific button is present in python scraping
Related questions
- python 3x - about the contents of python error code
- [python] [selenium] css pseudo-element state acquisition
- python 3x - "rgb triplets" atcoder abc162 inquiry about computational complexity
- python 3x - bring the chrome window opened in selenium to the front
- python 3x - i can't get the text of the span tag using selenium
- python - i made a code to search a website tag as a string, but can it be simplified?
- python - i want to search only a part of html (a certain selector) with find_all of beautifulsoup
- python - i'm using selenium the text sent by send_keys to the input tag disappears when the text is sent by send_key to the next
- python - the library installed by pip cannot be imported no module named'selenium'
- internet explorer - i am testing using selenium (ie11), but i cannot clear the cookie i entered last time
Let's examine what changes will occur on the DOM by pressing the