C# Selenium Invalid Selector Exception -


i'm using firefox add on select xpath of image want click during automation test using c#, , keep running invalidselectorexception error.

here xpath found using firefox.

id('ctl00_left_content')/x:div[4]/x:div[1]/x:table/x:tbody/x:tr/x:td[5]/x:p/x:a[2]/x:img 

i'm using xpath:

//*[@id('ctl00_left_content')/x:div[4]/x:div[1]/x:table/x:tbody/x:tr/x:td[5]/x:p/x:a[2]/x:img]" 

and returns invalidselectorerror

and have tried:

//*[@id=('ctl00_left_content')/div[4]/div[1]/table/tbody/tr/td[5]/p/a[2]/img] 

but returns "unable locate element" error.

any appreciated. thank you.

can add relevant page source? should have closing bracket after the id value part in xpath. missing in xpath.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -