# Get all attributes from each Selenium element in record time
```python
# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium2df
from a_selenium2df import get_df
from auto_download_undetected_chromedriver import download_undetected_chromedriver
import undetected_chromedriver as uc
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
if __name__ == "__main__":
folderchromedriver = "f:\\seleniumdriver2"
path = download_undetected_chromedriver(folder_path_for_exe=folderchromedriver, undetected=True)
driver = uc.Chrome(driver_executable_path=path)
driver.get(r"https://www.whitehouse.gov/")
df = get_df(driver, By, WebDriverWait, expected_conditions, queryselector="a", with_methods=False, )
# Faster, but you can only use the standard methods from the webelements
# The function parses the attributes of webelements much faster than
# pure Selenium because everything is done in a single query
# while Selenium sends a query for each item
# %timeit get_df(driver, By, WebDriverWait, expected_conditions, queryselector="a", with_methods=False, )
# 289 ms ± 4.89 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
df = get_df(driver, By, WebDriverWait, expected_conditions, queryselector="a",
with_methods=True, ) # Includes many methods methods, and takes care about frame switching
# Slower, but you get many useful methods
# %timeit get_df(driver, By, WebDriverWait, expected_conditions, queryselector="a", with_methods=True, )
# 908 ms ± 40.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
# Now you can use the power of pandas to locate webelements:
# print(df.loc[df.aa_outerText.str.contains('Vaccines.gov',na=False)].to_string())
#
#
# element frame elements_in_frame aa_relList aa_text aa_origin aa_host aa_hostname aa_pathname aa_href aa_offsetParent aa_offsetTop aa_offsetLeft aa_offsetWidth aa_offsetHeight aa_innerText aa_outerText aa_className aa_classList aa_innerHTML aa_outerHTML aa_scrollWidth aa_scrollHeight aa_clientWidth aa_clientHeight aa_previousElementSibling aa_nextElementSibling aa_parentNode aa_parentElement aa_firstChild aa_lastChild aa_nextSibling aa_textContent aa_rel aa_firstElementChild aa_lastElementChild aa_childElementCount js_toString js_attachInternals js_blur js_click js_focus js_after js_animate js_append js_attachShadow js_before js_closest js_computedStyleMap js_getAttribute js_getAttributeNS js_getAttributeNames js_getAttributeNode js_getAttributeNodeNS js_getBoundingClientRect js_getClientRects js_getElementsByClassName js_getElementsByTagName js_getElementsByTagNameNS js_getInnerHTML js_hasAttribute js_hasAttributeNS js_hasAttributes js_hasPointerCapture js_insertAdjacentElement js_insertAdjacentHTML js_insertAdjacentText js_matches js_prepend js_querySelector js_querySelectorAll js_releasePointerCapture js_remove js_removeAttribute js_removeAttributeNS js_removeAttributeNode js_replaceChildren js_replaceWith js_requestFullscreen js_requestPointerLock js_scroll js_scrollBy js_scrollIntoView js_scrollIntoViewIfNeeded js_scrollTo js_setAttribute js_setAttributeNS js_setAttributeNode js_setAttributeNodeNS js_setPointerCapture js_toggleAttribute js_webkitMatchesSelector js_webkitRequestFullScreen js_webkitRequestFullscreen js_checkVisibility js_getAnimations js_setHTML js_appendChild js_cloneNode js_compareDocumentPosition js_contains js_getRootNode js_hasChildNodes js_insertBefore js_isDefaultNamespace js_isEqualNode js_isSameNode js_lookupNamespaceURI js_lookupPrefix js_normalize js_removeChild js_replaceChild js_addEventListener js_dispatchEvent js_removeEventListener js_wheel js_change_html_value se_send_keys se_find_elements se_find_element se_is_displayed se_is_enabled se_is_selected se_clear se_click se_switch_to_frame se_location_once_scrolled_into_view se_get_screenshot_as_file se_screenshot aa_window_handle aa_window_switch
# 68 <selenium.webdriver.remote.webelement.WebElement (session="28e4140b6737882b119b3c693a8fd816", element="93eee670-1b4b-4896-b0e3-55357578413c")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ [object HTMLDivElement] 333 <NA> 882 57 Visit Vaccines.gov Visit Vaccines.gov home-topper__btn home-topper__btn--mobile btn home-topper__btn home-topper__btn--mobile btn Visit Vaccines.gov <a href="https://www.vaccines.gov/" class="home-topper__btn home-topper__btn--mobile btn" target="_blank" rel="noopener noreferrer">\n\t\t\t\t\t\t\tVisit Vaccines.gov\t\t\t\t\t\t</a> 878 53 878 53 [object HTMLDivElement] <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\Users\Gamer\anaconda3\envs\dfdir\seleniumpictures\68.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()
# 69 <selenium.webdriver.remote.webelement.WebElement (session="28e4140b6737882b119b3c693a8fd816", element="e720ec81-d95e-4acd-88f6-3546937ec66d")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ <NA> <NA> <NA> <NA> <NA> Visit Vaccines.gov Visit Vaccines.gov home-topper__btn btn home-topper__btn btn Visit Vaccines.gov <a href="https://www.vaccines.gov/" class="home-topper__btn btn" target="_blank" rel="noopener noreferrer">\n\t\t\t\t\t\t\tVisit Vaccines.gov\t\t\t\t\t\t</a> <NA> <NA> <NA> <NA> <NA> <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\Users\Gamer\anaconda3\envs\dfdir\seleniumpictures\69.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()
# 101 <selenium.webdriver.remote.webelement.WebElement (session="28e4140b6737882b119b3c693a8fd816", element="bc9ffa93-6cd1-454f-8785-7967ebb8f91a")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ [object HTMLDivElement] 149 137 264 57 Visit Vaccines.gov Visit Vaccines.gov btn btn Visit Vaccines.gov <a href="https://www.vaccines.gov/" class="btn" target="_blank" rel="noopener noreferrer">\n\t\t\t\t\t\t\t\tVisit Vaccines.gov\t\t\t\t\t\t\t</a> 260 53 260 53 [object HTMLHRElement] <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\Users\Gamer\anaconda3\envs\dfdir\seleniumpictures\101.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()
#
# print(df.loc[df.aa_outerText.str.contains('Vaccines.gov',na=False)].iloc[0]
# Here is a view of a single element
# Enough information to locate any item
# i n d e x █ index █ 68 █
# ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
# 0 █ element █ <selenium.webdriver.remote.webelement.WebElement (session="28e4140b6737882b119b3c693a8fd816", element="93eee670-1b4b-4896-b0e3-55357578413c")> █
# 1 █ frame █ mainframe █
# 2 █ elements_in_frame █ 122 █
# 3 █ aa_relList █ noopener noreferrer █
# 4 █ aa_text █ Visit Vaccines.gov █
# 5 █ aa_origin █ https://www.vaccines.gov █
# 6 █ aa_host █ www.vaccines.gov █
# 7 █ aa_hostname █ www.vaccines.gov █
# 8 █ aa_pathname █ / █
# 9 █ aa_href █ https://www.vaccines.gov/ █
# 10 █ aa_offsetParent █ [object HTMLDivElement] █
# 11 █ aa_offsetTop █ 333 █
# 12 █ aa_offsetLeft █ <NA> █
# 13 █ aa_offsetWidth █ 882 █
# 14 █ aa_offsetHeight █ 57 █
# 15 █ aa_innerText █ Visit Vaccines.gov █
# 16 █ aa_outerText █ Visit Vaccines.gov █
# 17 █ aa_className █ home-topper__btn home-topper__btn--mobile btn █
# 18 █ aa_classList █ home-topper__btn home-topper__btn--mobile btn █
# 19 █ aa_innerHTML █ Visit Vaccines.gov █
# 20 █ aa_outerHTML █ <a href="https://www.vaccines.gov/" class="home-topper__btn home-topper__btn--mobile btn" target="_blank" rel="noopener noreferrer">\n\t\t\t\t\tVisit Vaccines.gov</a> █
# 21 █ aa_scrollWidth █ 878 █
# 22 █ aa_scrollHeight █ 53 █
# 23 █ aa_clientWidth █ 878 █
# 24 █ aa_clientHeight █ 53 █
# 25 █ aa_previousElementSibling █ [object HTMLDivElement] █
# 26 █ aa_nextElementSibling █ <NA> █
# 27 █ aa_parentNode █ [object HTMLDivElement] █
# 28 █ aa_parentElement █ [object HTMLDivElement] █
# 29 █ aa_firstChild █ [object Text] █
# 30 █ aa_lastChild █ [object Text] █
# 31 █ aa_nextSibling █ [object Text] █
# 32 █ aa_textContent █ Visit Vaccines.gov █
# 33 █ aa_rel █ noopener noreferrer █
# 34 █ aa_firstElementChild █ <NA> █
# 35 █ aa_lastElementChild █ <NA> █
# 36 █ aa_childElementCount █ <NA> █
# 37 █ js_toString █ () █
# 38 █ js_attachInternals █ () █
# 39 █ js_blur █ () █
# 40 █ js_click █ () █
# 41 █ js_focus █ () █
# 42 █ js_after █ () █
# 43 █ js_animate █ () █
# 44 █ js_append █ () █
# 45 █ js_attachShadow █ () █
# 46 █ js_before █ () █
# 47 █ js_closest █ () █
# 48 █ js_computedStyleMap █ () █
# 49 █ js_getAttribute █ () █
# 50 █ js_getAttributeNS █ () █
# 51 █ js_getAttributeNames █ () █
# 52 █ js_getAttributeNode █ () █
# 53 █ js_getAttributeNodeNS █ () █
# 54 █ js_getBoundingClientRect █ () █
# 55 █ js_getClientRects █ () █
# 56 █ js_getElementsByClassName █ () █
# 57 █ js_getElementsByTagName █ () █
# 58 █ js_getElementsByTagNameNS █ () █
# 59 █ js_getInnerHTML █ () █
# 60 █ js_hasAttribute █ () █
# 61 █ js_hasAttributeNS █ () █
# 62 █ js_hasAttributes █ () █
# 63 █ js_hasPointerCapture █ () █
# 64 █ js_insertAdjacentElement █ () █
# 65 █ js_insertAdjacentHTML █ () █
# 66 █ js_insertAdjacentText █ () █
# 67 █ js_matches █ () █
# 68 █ js_prepend █ () █
# 69 █ js_querySelector █ () █
# 70 █ js_querySelectorAll █ () █
# 71 █ js_releasePointerCapture █ () █
# 72 █ js_remove █ () █
# 73 █ js_removeAttribute █ () █
# 74 █ js_removeAttributeNS █ () █
# 75 █ js_removeAttributeNode █ () █
# 76 █ js_replaceChildren █ () █
# 77 █ js_replaceWith █ () █
# 78 █ js_requestFullscreen █ () █
# 79 █ js_requestPointerLock █ () █
# 80 █ js_scroll █ () █
# 81 █ js_scrollBy █ () █
# 82 █ js_scrollIntoView █ () █
# 83 █ js_scrollIntoViewIfNeeded █ () █
# 84 █ js_scrollTo █ () █
# 85 █ js_setAttribute █ () █
# 86 █ js_setAttributeNS █ () █
# 87 █ js_setAttributeNode █ () █
# 88 █ js_setAttributeNodeNS █ () █
# 89 █ js_setPointerCapture █ () █
# 90 █ js_toggleAttribute █ () █
# 91 █ js_webkitMatchesSelector █ () █
# 92 █ js_webkitRequestFullScreen █ () █
# 93 █ js_webkitRequestFullscreen █ () █
# 94 █ js_checkVisibility █ () █
# 95 █ js_getAnimations █ () █
# 96 █ js_setHTML █ () █
# 97 █ js_appendChild █ () █
# 98 █ js_cloneNode █ () █
# 99 █ js_compareDocumentPosition █ () █
# 100 █ js_contains █ () █
# 101 █ js_getRootNode █ () █
# 102 █ js_hasChildNodes █ () █
# 103 █ js_insertBefore █ () █
# 104 █ js_isDefaultNamespace █ () █
# 105 █ js_isEqualNode █ () █
# 106 █ js_isSameNode █ () █
# 107 █ js_lookupNamespaceURI █ () █
# 108 █ js_lookupPrefix █ () █
# 109 █ js_normalize █ () █
# 110 █ js_removeChild █ () █
# 111 █ js_replaceChild █ () █
# 112 █ js_addEventListener █ () █
# 113 █ js_dispatchEvent █ () █
# 114 █ js_removeEventListener █ () █
# 115 █ js_wheel █ () █
# 116 █ js_change_html_value █ () █
# 117 █ se_send_keys █ () █
# 118 █ se_find_elements █ () █
# 119 █ se_find_element █ () █
# 120 █ se_is_displayed █ () █
# 121 █ se_is_enabled █ () █
# 122 █ se_is_selected █ () █
# 123 █ se_clear █ () █
# 124 █ se_click █ () █
# 125 █ se_switch_to_frame █ None █
# 126 █ se_location_once_scrolled_into_view █ () █
# 127 █ se_get_screenshot_as_file █ C:\Users\Gamer\anaconda3\envs\dfdir\seleniumpictures\68.png █
# 128 █ se_screenshot █ () █
# 129 █ aa_window_handle █ CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 █
# 130 █ aa_window_switch █ CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3() █
# i n d e x █ rows █
# ██████████████████
# Series █ 131 █
# Here is one way of clicking on an item
# This method switches automatically to the right frame before clicking
# df.loc[df.aa_outerText.str.contains("Vaccines.gov", na=False)].iloc[0].js_click()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/a_selenium2df",
"name": "a-selenium2df",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Selenium,automation",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/15/72/905762c24f98e6334a9a4c1439e267fa21823278c202403bc70a53fe47a3/a_selenium2df-0.10.tar.gz",
"platform": null,
"description": "\n# Get all attributes from each Selenium element in record time \n\n\n```python\n# Tested with:\n# https://github.com/ultrafunkamsterdam/undetected-chromedriver\n# Python 3.9.13\n# Windows 10\n\n$pip install a-selenium2df\n\n\nfrom a_selenium2df import get_df\nfrom auto_download_undetected_chromedriver import download_undetected_chromedriver\nimport undetected_chromedriver as uc\nfrom selenium.webdriver.support import expected_conditions\nfrom selenium.webdriver.support.wait import WebDriverWait\nfrom selenium.webdriver.common.by import By\n\nif __name__ == \"__main__\":\n folderchromedriver = \"f:\\\\seleniumdriver2\"\n path = download_undetected_chromedriver(folder_path_for_exe=folderchromedriver, undetected=True)\n driver = uc.Chrome(driver_executable_path=path)\n driver.get(r\"https://www.whitehouse.gov/\")\n\n df = get_df(driver, By, WebDriverWait, expected_conditions, queryselector=\"a\", with_methods=False, )\n # Faster, but you can only use the standard methods from the webelements\n # The function parses the attributes of webelements much faster than\n # pure Selenium because everything is done in a single query\n # while Selenium sends a query for each item\n\n # %timeit get_df(driver, By, WebDriverWait, expected_conditions, queryselector=\"a\", with_methods=False, )\n # 289 ms \u00b1 4.89 ms per loop (mean \u00b1 std. dev. of 7 runs, 1 loop each)\n\n df = get_df(driver, By, WebDriverWait, expected_conditions, queryselector=\"a\",\n with_methods=True, ) # Includes many methods methods, and takes care about frame switching\n\t# Slower, but you get many useful methods\n # %timeit get_df(driver, By, WebDriverWait, expected_conditions, queryselector=\"a\", with_methods=True, ) \n\t# 908 ms \u00b1 40.1 ms per loop (mean \u00b1 std. dev. of 7 runs, 1 loop each)\n\n# Now you can use the power of pandas to locate webelements:\n# print(df.loc[df.aa_outerText.str.contains('Vaccines.gov',na=False)].to_string())\n#\n#\n# element frame elements_in_frame aa_relList aa_text aa_origin aa_host aa_hostname aa_pathname aa_href aa_offsetParent aa_offsetTop aa_offsetLeft aa_offsetWidth aa_offsetHeight aa_innerText aa_outerText aa_className aa_classList aa_innerHTML aa_outerHTML aa_scrollWidth aa_scrollHeight aa_clientWidth aa_clientHeight aa_previousElementSibling aa_nextElementSibling aa_parentNode aa_parentElement aa_firstChild aa_lastChild aa_nextSibling aa_textContent aa_rel aa_firstElementChild aa_lastElementChild aa_childElementCount js_toString js_attachInternals js_blur js_click js_focus js_after js_animate js_append js_attachShadow js_before js_closest js_computedStyleMap js_getAttribute js_getAttributeNS js_getAttributeNames js_getAttributeNode js_getAttributeNodeNS js_getBoundingClientRect js_getClientRects js_getElementsByClassName js_getElementsByTagName js_getElementsByTagNameNS js_getInnerHTML js_hasAttribute js_hasAttributeNS js_hasAttributes js_hasPointerCapture js_insertAdjacentElement js_insertAdjacentHTML js_insertAdjacentText js_matches js_prepend js_querySelector js_querySelectorAll js_releasePointerCapture js_remove js_removeAttribute js_removeAttributeNS js_removeAttributeNode js_replaceChildren js_replaceWith js_requestFullscreen js_requestPointerLock js_scroll js_scrollBy js_scrollIntoView js_scrollIntoViewIfNeeded js_scrollTo js_setAttribute js_setAttributeNS js_setAttributeNode js_setAttributeNodeNS js_setPointerCapture js_toggleAttribute js_webkitMatchesSelector js_webkitRequestFullScreen js_webkitRequestFullscreen js_checkVisibility js_getAnimations js_setHTML js_appendChild js_cloneNode js_compareDocumentPosition js_contains js_getRootNode js_hasChildNodes js_insertBefore js_isDefaultNamespace js_isEqualNode js_isSameNode js_lookupNamespaceURI js_lookupPrefix js_normalize js_removeChild js_replaceChild js_addEventListener js_dispatchEvent js_removeEventListener js_wheel js_change_html_value se_send_keys se_find_elements se_find_element se_is_displayed se_is_enabled se_is_selected se_clear se_click se_switch_to_frame se_location_once_scrolled_into_view se_get_screenshot_as_file se_screenshot aa_window_handle aa_window_switch\n# 68 <selenium.webdriver.remote.webelement.WebElement (session=\"28e4140b6737882b119b3c693a8fd816\", element=\"93eee670-1b4b-4896-b0e3-55357578413c\")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ [object HTMLDivElement] 333 <NA> 882 57 Visit Vaccines.gov Visit Vaccines.gov home-topper__btn home-topper__btn--mobile btn home-topper__btn home-topper__btn--mobile btn Visit Vaccines.gov <a href=\"https://www.vaccines.gov/\" class=\"home-topper__btn home-topper__btn--mobile btn\" target=\"_blank\" rel=\"noopener noreferrer\">\\n\\t\\t\\t\\t\\t\\t\\tVisit Vaccines.gov\\t\\t\\t\\t\\t\\t</a> 878 53 878 53 [object HTMLDivElement] <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\\Users\\Gamer\\anaconda3\\envs\\dfdir\\seleniumpictures\\68.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()\n# 69 <selenium.webdriver.remote.webelement.WebElement (session=\"28e4140b6737882b119b3c693a8fd816\", element=\"e720ec81-d95e-4acd-88f6-3546937ec66d\")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ <NA> <NA> <NA> <NA> <NA> Visit Vaccines.gov Visit Vaccines.gov home-topper__btn btn home-topper__btn btn Visit Vaccines.gov <a href=\"https://www.vaccines.gov/\" class=\"home-topper__btn btn\" target=\"_blank\" rel=\"noopener noreferrer\">\\n\\t\\t\\t\\t\\t\\t\\tVisit Vaccines.gov\\t\\t\\t\\t\\t\\t</a> <NA> <NA> <NA> <NA> <NA> <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\\Users\\Gamer\\anaconda3\\envs\\dfdir\\seleniumpictures\\69.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()\n# 101 <selenium.webdriver.remote.webelement.WebElement (session=\"28e4140b6737882b119b3c693a8fd816\", element=\"bc9ffa93-6cd1-454f-8785-7967ebb8f91a\")> mainframe 122 noopener noreferrer Visit Vaccines.gov https://www.vaccines.gov www.vaccines.gov www.vaccines.gov / https://www.vaccines.gov/ [object HTMLDivElement] 149 137 264 57 Visit Vaccines.gov Visit Vaccines.gov btn btn Visit Vaccines.gov <a href=\"https://www.vaccines.gov/\" class=\"btn\" target=\"_blank\" rel=\"noopener noreferrer\">\\n\\t\\t\\t\\t\\t\\t\\t\\tVisit Vaccines.gov\\t\\t\\t\\t\\t\\t\\t</a> 260 53 260 53 [object HTMLHRElement] <NA> [object HTMLDivElement] [object HTMLDivElement] [object Text] [object Text] [object Text] Visit Vaccines.gov noopener noreferrer <NA> <NA> <NA> () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () () None () C:\\Users\\Gamer\\anaconda3\\envs\\dfdir\\seleniumpictures\\101.png () CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3()\n#\n\n# print(df.loc[df.aa_outerText.str.contains('Vaccines.gov',na=False)].iloc[0]\n# Here is a view of a single element\n# Enough information to locate any item\n\n# i n d e x \u2588 index \u2588 68 \u2588\n# \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\n# 0 \u2588 element \u2588 <selenium.webdriver.remote.webelement.WebElement (session=\"28e4140b6737882b119b3c693a8fd816\", element=\"93eee670-1b4b-4896-b0e3-55357578413c\")> \u2588\n# 1 \u2588 frame \u2588 mainframe \u2588\n# 2 \u2588 elements_in_frame \u2588 122 \u2588\n# 3 \u2588 aa_relList \u2588 noopener noreferrer \u2588\n# 4 \u2588 aa_text \u2588 Visit Vaccines.gov \u2588\n# 5 \u2588 aa_origin \u2588 https://www.vaccines.gov \u2588\n# 6 \u2588 aa_host \u2588 www.vaccines.gov \u2588\n# 7 \u2588 aa_hostname \u2588 www.vaccines.gov \u2588\n# 8 \u2588 aa_pathname \u2588 / \u2588\n# 9 \u2588 aa_href \u2588 https://www.vaccines.gov/ \u2588\n# 10 \u2588 aa_offsetParent \u2588 [object HTMLDivElement] \u2588\n# 11 \u2588 aa_offsetTop \u2588 333 \u2588\n# 12 \u2588 aa_offsetLeft \u2588 <NA> \u2588\n# 13 \u2588 aa_offsetWidth \u2588 882 \u2588\n# 14 \u2588 aa_offsetHeight \u2588 57 \u2588\n# 15 \u2588 aa_innerText \u2588 Visit Vaccines.gov \u2588\n# 16 \u2588 aa_outerText \u2588 Visit Vaccines.gov \u2588\n# 17 \u2588 aa_className \u2588 home-topper__btn home-topper__btn--mobile btn \u2588\n# 18 \u2588 aa_classList \u2588 home-topper__btn home-topper__btn--mobile btn \u2588\n# 19 \u2588 aa_innerHTML \u2588 Visit Vaccines.gov \u2588\n# 20 \u2588 aa_outerHTML \u2588 <a href=\"https://www.vaccines.gov/\" class=\"home-topper__btn home-topper__btn--mobile btn\" target=\"_blank\" rel=\"noopener noreferrer\">\\n\\t\\t\\t\\t\\tVisit Vaccines.gov</a> \u2588\n# 21 \u2588 aa_scrollWidth \u2588 878 \u2588\n# 22 \u2588 aa_scrollHeight \u2588 53 \u2588\n# 23 \u2588 aa_clientWidth \u2588 878 \u2588\n# 24 \u2588 aa_clientHeight \u2588 53 \u2588\n# 25 \u2588 aa_previousElementSibling \u2588 [object HTMLDivElement] \u2588\n# 26 \u2588 aa_nextElementSibling \u2588 <NA> \u2588\n# 27 \u2588 aa_parentNode \u2588 [object HTMLDivElement] \u2588\n# 28 \u2588 aa_parentElement \u2588 [object HTMLDivElement] \u2588\n# 29 \u2588 aa_firstChild \u2588 [object Text] \u2588\n# 30 \u2588 aa_lastChild \u2588 [object Text] \u2588\n# 31 \u2588 aa_nextSibling \u2588 [object Text] \u2588\n# 32 \u2588 aa_textContent \u2588 Visit Vaccines.gov \u2588\n# 33 \u2588 aa_rel \u2588 noopener noreferrer \u2588\n# 34 \u2588 aa_firstElementChild \u2588 <NA> \u2588\n# 35 \u2588 aa_lastElementChild \u2588 <NA> \u2588\n# 36 \u2588 aa_childElementCount \u2588 <NA> \u2588\n# 37 \u2588 js_toString \u2588 () \u2588\n# 38 \u2588 js_attachInternals \u2588 () \u2588\n# 39 \u2588 js_blur \u2588 () \u2588\n# 40 \u2588 js_click \u2588 () \u2588\n# 41 \u2588 js_focus \u2588 () \u2588\n# 42 \u2588 js_after \u2588 () \u2588\n# 43 \u2588 js_animate \u2588 () \u2588\n# 44 \u2588 js_append \u2588 () \u2588\n# 45 \u2588 js_attachShadow \u2588 () \u2588\n# 46 \u2588 js_before \u2588 () \u2588\n# 47 \u2588 js_closest \u2588 () \u2588\n# 48 \u2588 js_computedStyleMap \u2588 () \u2588\n# 49 \u2588 js_getAttribute \u2588 () \u2588\n# 50 \u2588 js_getAttributeNS \u2588 () \u2588\n# 51 \u2588 js_getAttributeNames \u2588 () \u2588\n# 52 \u2588 js_getAttributeNode \u2588 () \u2588\n# 53 \u2588 js_getAttributeNodeNS \u2588 () \u2588\n# 54 \u2588 js_getBoundingClientRect \u2588 () \u2588\n# 55 \u2588 js_getClientRects \u2588 () \u2588\n# 56 \u2588 js_getElementsByClassName \u2588 () \u2588\n# 57 \u2588 js_getElementsByTagName \u2588 () \u2588\n# 58 \u2588 js_getElementsByTagNameNS \u2588 () \u2588\n# 59 \u2588 js_getInnerHTML \u2588 () \u2588\n# 60 \u2588 js_hasAttribute \u2588 () \u2588\n# 61 \u2588 js_hasAttributeNS \u2588 () \u2588\n# 62 \u2588 js_hasAttributes \u2588 () \u2588\n# 63 \u2588 js_hasPointerCapture \u2588 () \u2588\n# 64 \u2588 js_insertAdjacentElement \u2588 () \u2588\n# 65 \u2588 js_insertAdjacentHTML \u2588 () \u2588\n# 66 \u2588 js_insertAdjacentText \u2588 () \u2588\n# 67 \u2588 js_matches \u2588 () \u2588\n# 68 \u2588 js_prepend \u2588 () \u2588\n# 69 \u2588 js_querySelector \u2588 () \u2588\n# 70 \u2588 js_querySelectorAll \u2588 () \u2588\n# 71 \u2588 js_releasePointerCapture \u2588 () \u2588\n# 72 \u2588 js_remove \u2588 () \u2588\n# 73 \u2588 js_removeAttribute \u2588 () \u2588\n# 74 \u2588 js_removeAttributeNS \u2588 () \u2588\n# 75 \u2588 js_removeAttributeNode \u2588 () \u2588\n# 76 \u2588 js_replaceChildren \u2588 () \u2588\n# 77 \u2588 js_replaceWith \u2588 () \u2588\n# 78 \u2588 js_requestFullscreen \u2588 () \u2588\n# 79 \u2588 js_requestPointerLock \u2588 () \u2588\n# 80 \u2588 js_scroll \u2588 () \u2588\n# 81 \u2588 js_scrollBy \u2588 () \u2588\n# 82 \u2588 js_scrollIntoView \u2588 () \u2588\n# 83 \u2588 js_scrollIntoViewIfNeeded \u2588 () \u2588\n# 84 \u2588 js_scrollTo \u2588 () \u2588\n# 85 \u2588 js_setAttribute \u2588 () \u2588\n# 86 \u2588 js_setAttributeNS \u2588 () \u2588\n# 87 \u2588 js_setAttributeNode \u2588 () \u2588\n# 88 \u2588 js_setAttributeNodeNS \u2588 () \u2588\n# 89 \u2588 js_setPointerCapture \u2588 () \u2588\n# 90 \u2588 js_toggleAttribute \u2588 () \u2588\n# 91 \u2588 js_webkitMatchesSelector \u2588 () \u2588\n# 92 \u2588 js_webkitRequestFullScreen \u2588 () \u2588\n# 93 \u2588 js_webkitRequestFullscreen \u2588 () \u2588\n# 94 \u2588 js_checkVisibility \u2588 () \u2588\n# 95 \u2588 js_getAnimations \u2588 () \u2588\n# 96 \u2588 js_setHTML \u2588 () \u2588\n# 97 \u2588 js_appendChild \u2588 () \u2588\n# 98 \u2588 js_cloneNode \u2588 () \u2588\n# 99 \u2588 js_compareDocumentPosition \u2588 () \u2588\n# 100 \u2588 js_contains \u2588 () \u2588\n# 101 \u2588 js_getRootNode \u2588 () \u2588\n# 102 \u2588 js_hasChildNodes \u2588 () \u2588\n# 103 \u2588 js_insertBefore \u2588 () \u2588\n# 104 \u2588 js_isDefaultNamespace \u2588 () \u2588\n# 105 \u2588 js_isEqualNode \u2588 () \u2588\n# 106 \u2588 js_isSameNode \u2588 () \u2588\n# 107 \u2588 js_lookupNamespaceURI \u2588 () \u2588\n# 108 \u2588 js_lookupPrefix \u2588 () \u2588\n# 109 \u2588 js_normalize \u2588 () \u2588\n# 110 \u2588 js_removeChild \u2588 () \u2588\n# 111 \u2588 js_replaceChild \u2588 () \u2588\n# 112 \u2588 js_addEventListener \u2588 () \u2588\n# 113 \u2588 js_dispatchEvent \u2588 () \u2588\n# 114 \u2588 js_removeEventListener \u2588 () \u2588\n# 115 \u2588 js_wheel \u2588 () \u2588\n# 116 \u2588 js_change_html_value \u2588 () \u2588\n# 117 \u2588 se_send_keys \u2588 () \u2588\n# 118 \u2588 se_find_elements \u2588 () \u2588\n# 119 \u2588 se_find_element \u2588 () \u2588\n# 120 \u2588 se_is_displayed \u2588 () \u2588\n# 121 \u2588 se_is_enabled \u2588 () \u2588\n# 122 \u2588 se_is_selected \u2588 () \u2588\n# 123 \u2588 se_clear \u2588 () \u2588\n# 124 \u2588 se_click \u2588 () \u2588\n# 125 \u2588 se_switch_to_frame \u2588 None \u2588\n# 126 \u2588 se_location_once_scrolled_into_view \u2588 () \u2588\n# 127 \u2588 se_get_screenshot_as_file \u2588 C:\\Users\\Gamer\\anaconda3\\envs\\dfdir\\seleniumpictures\\68.png \u2588\n# 128 \u2588 se_screenshot \u2588 () \u2588\n# 129 \u2588 aa_window_handle \u2588 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3 \u2588\n# 130 \u2588 aa_window_switch \u2588 CDwindow-5EB51E090E4DDEB92ECFA74D9FBF90D3() \u2588\n# i n d e x \u2588 rows \u2588\n# \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\n# Series \u2588 131 \u2588\n\n\n# Here is one way of clicking on an item\n# This method switches automatically to the right frame before clicking\n# df.loc[df.aa_outerText.str.contains(\"Vaccines.gov\", na=False)].iloc[0].js_click()\n\n\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Get all attributes from each Selenium element in record time",
"version": "0.10",
"project_urls": {
"Homepage": "https://github.com/hansalemaos/a_selenium2df"
},
"split_keywords": [
"selenium",
"automation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "54ae4a16bc39e7f8108b0d06c90f7e6ea1e850b45b5fa3514a05fa661327a7cd",
"md5": "73cd6bb6a231c60ab1037b8d2d69de84",
"sha256": "334845939f631db8a8e6b89273c5a8aaec5d35c73209247b79b0e8821a509405"
},
"downloads": -1,
"filename": "a_selenium2df-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "73cd6bb6a231c60ab1037b8d2d69de84",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16653,
"upload_time": "2023-01-01T07:30:13",
"upload_time_iso_8601": "2023-01-01T07:30:13.654969Z",
"url": "https://files.pythonhosted.org/packages/54/ae/4a16bc39e7f8108b0d06c90f7e6ea1e850b45b5fa3514a05fa661327a7cd/a_selenium2df-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1572905762c24f98e6334a9a4c1439e267fa21823278c202403bc70a53fe47a3",
"md5": "77db5d941846a517569375a814e1cf46",
"sha256": "acec1f6f590276e008a195b386ad38d5fb89e7daf691f48688dee7528368759e"
},
"downloads": -1,
"filename": "a_selenium2df-0.10.tar.gz",
"has_sig": false,
"md5_digest": "77db5d941846a517569375a814e1cf46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23334,
"upload_time": "2023-01-01T07:30:15",
"upload_time_iso_8601": "2023-01-01T07:30:15.424300Z",
"url": "https://files.pythonhosted.org/packages/15/72/905762c24f98e6334a9a4c1439e267fa21823278c202403bc70a53fe47a3/a_selenium2df-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-01 07:30:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hansalemaos",
"github_project": "a_selenium2df",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "a_selenium_iframes_crawler",
"specs": []
},
{
"name": "check_if_nan",
"specs": []
},
{
"name": "flatten_everything",
"specs": []
},
{
"name": "pandas",
"specs": []
},
{
"name": "regex",
"specs": []
},
{
"name": "useful_functions_easier_life",
"specs": []
}
],
"lcname": "a-selenium2df"
}