Python-World / s-tool

Selenium wrapper to make your life easy.
MIT License
10 stars 6 forks source link

write a function to parse dropdown using lxml #39

Closed chavarera closed 1 year ago

chavarera commented 3 years ago

The Speed of selenium object parser is slow.

https://github.com/Python-World/s-tool/blob/d14ddb3f4fe7a362abbbc6f7885f4a268ca0af20/s_tool/parser.py#L5

replace above method with LXML logic

Steps:

  1. get selenium input element(keep parameter and function name same)
  2. get innerHTML of given element
  3. parse text and values
  4. return parsed text and value in dictionary format

If you have any doubt comment