Generally I try not to touch class, especially without some sort of prefixing thing because you don't know what styles properties are out there current and in the future.
Instead, what I like to do is use the 'data-*' properties.. So I might have something like, driver.find_element_by_css_selector("[data-aut-id='figurestable'] tr[data-aut-id='entry{0}']".format(entryId))
Was wondering where you are running WebDriver tests on hosted mode (on a large project) ? If so, how fast you get feedback?
ReplyDeleteGenerally I try not to touch class, especially without some sort of prefixing thing because you don't know what styles properties are out there current and in the future.
ReplyDeleteInstead, what I like to do is use the 'data-*' properties.. So I might have something like,
driver.find_element_by_css_selector("[data-aut-id='figurestable'] tr[data-aut-id='entry{0}']".format(entryId))