What is arguments[0] while invoking execute_script() method through WebDriver instance through Selenium and Python?
问题 I'm trying to crawl the pages that I interested in. For this, I need to remove attribute of element from HTML. 'style' is what I want to remove. So I find some codes from Stackoverflow.(i'm using Chrome for driver) element = driver.find_element_by_xpath("//select[@class='m-tcol-c' and @id='searchBy']") driver.execute_script("arguments[0].removeAttribute('style')", element) What does arguments[0] do in the code? Can anyone explain arguments[0] 's roles concretely? 回答1: arguments is what you're