I am trying to scrape an element from a page using Selenium Web Driver and I cant seem to figure out how to grab a certain text. I am trying to get the sting " 35330100: Oil and gas drilling rigs and equipment" in this line of code below.
<td class="tRight altRow">35330100: Oil and gas drilling rigs and equipment</td>
the syntax that I used in my notebook which is throwing me an error is as below
primary = driver.find_element_by_class_name("tRight altRow")
Any help would be helpful.
Many thanks in advance.