Answer the question
In order to leave comments, you need to log in
How to make a script (Python Selenium) compatible with Firefox 58?
Hello! Faced a problem! There is a script for automation in Python + Selenium. Works fine on FF 46(ubuntu 14.04, Python 2) and 55(Windows 10, Python 3) versions, but has issues on 58.x versions (Ubuntu 16.04, Ubuntu 14.04 | Python 2).
For this piece of code:
h1_text = "lorem ipsum"
heading = driver.find_element_by_css_selector("div[class='s-item-title']")
heading.click()
heading.send_keys(Keys.CONTROL,"a")
heading.send_keys(Keys.DELETE)
heading.send_keys(h1_text)
Answer the question
In order to leave comments, you need to log in
And what is your task? Send text "lorem ipsum" to field "div[class='s-item-title']"?
Is it important to check the functionality of the keys pressed?
If not, then try:
ps: or getElementsByClassName
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question