turtle programacion penup instalar dibujar comandos color circulo change python selenium charts automation pie-chart

programacion - Selenio Python: el mouse se desplaza sobre el gráfico circular con secciones pequeñas sobre secciones incorrectas



turtle programacion (0)

Tengo un gráfico

<g class="highcharts-series highcharts-series-0 highcharts-tracker" visibility="visible" zIndex="0.1" transform="translate(10,53) scale(1 1)" style=""> <path fill="#7cb5ec" d="M 500.9852336927321 44.00000150375057 A 72.5 72.5 0 0 1 573.3468976661693 111.79081768447826 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#434348" d="M 573.3515706742542 111.86316692467757 A 72.5 72.5 0 0 1 537.010994761827 179.42422630643676 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#90ed7d" d="M 536.9480525405121 179.4602058330862 A 72.5 72.5 0 0 1 465.9110382088362 179.94300403053316 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#f7a35c" d="M 465.8476127598589 179.9078833530908 A 72.5 72.5 0 0 1 433.4218169829869 142.75717387913403 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#8085e9" d="M 433.3955936025726 142.68958257879422 A 72.5 72.5 0 0 1 429.74256016362915 103.13484874885481 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#f15c80" d="M 429.7559609413697 103.06359800346976 A 72.5 72.5 0 0 1 446.6093265964912 68.56353531274087 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#e4d354" d="M 446.6572902485235 68.50916861663282 A 72.5 72.5 0 0 1 465.58253994334234 53.239795106757214 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#2b908f" d="M 465.6458178464208 53.20440928270325 A 72.5 72.5 0 0 1 483.1764041079913 46.22504408056615 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#f45b5b" d="M 483.24668796399544 46.20725562511977 A 72.5 72.5 0 0 1 499.2319742111542 44.021561241911556 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> <path fill="#91e8e1" d="M 499.3044535218454 44.019829455633754 A 72.5 72.5 0 0 1 500.89929895448984 44.0000699358997 L 501 116.5 A 0 0 0 0 0 501 116.5 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)"></path> </g>

Mi carta

Intento pasar el cursor sobre cada una de las secciones usando xpaths:

//*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][1] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][2] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][3] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][4] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][5] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][6] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][7] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][8] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][9] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][10] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][11] //*[@id=''highcharts-0'']//*[@class=''highcharts-series-group'']//*[@class=''highcharts-series highcharts-series-0 highcharts-tracker'']//*[@fill][12]

hover_element = self.driver.find_element_by_xpath(my_xpaths) hover = ActionChains(self.driver).move_to_element(hover_element) hover.perform()

entonces leo sus consejos

Pero pocos xpaths se ciernen sobre los elementos incorrectos y me dan la siguiente lista de información sobre herramientas

[''defect'', ''development'', ''action item'', ''enhancement development'', ''enhancement analysis'', ''enhancement analysis'', ''hpg'', ''document'', ''document'', ''design'', ''integration'', ''integration'']

donde como se espera

[''defect'', ''development'', ''action item'', ''enhancement development'', ''enhancement analysis'', ''hpg'', ''document'', ''implementation'', ''design'', ''validation'', ''analysis'', ''integration'']

Ayúdame a descubrir por qué está flotando en las secciones de cartas adyacentes algunas veces y correctamente algunas veces