problem with selection of web page data with the same title of Class, with selenium, it has to be done by nth child (I think)

0

I have to select information from a web page but what happens is that the information is contained in "CSS elements with the same name as" class "", so I think you have to search for "nth child" but I the syntax fails ..

can you help me?

Thanks in advance, greetings

    
asked by Jose Miguel 20.07.2018 в 13:07
source

1 answer

0

It depends on whether your elements hang all one behind the other of the parent element (such as <li> in a <ul> ) that you would use .tuclase:nth-child(2) or if they have elements in the middle of another type, so you would use .tuclase:nth-of-type(2) . If you put a piece of code it will be easier

    
answered by 20.07.2018 в 13:13