Thanks Rob, but I don't quite get it... When I run the following in console:
$x(/html/body/div/table/tbody/tr/td[2]/div[2]/table/tbody/tr/td[2]/ table/tbody/tr/td/div/div/div/form/div[10]/table/tbody/tr/td[2]/ input); I get "SyntaxError: invalid regular expression in flag b". I'm not familiar with the firebug console--what exactly is $x() doing? Thanks! On Jan 7, 11:51 am, Rob Campbell <[email protected]> wrote: > easier shortcut from the Console's command-line: > > >>> $x({xpath-expression}); // copied from HTML panel's status bar > > You can use document.evaluate() but this is a lot simpler. Good luck! > > On Jan 6, 10:33 pm, "Brian L. Matthews" <[email protected]> wrote: > > > > I see that Firebug allows you to easily copy the XPath expression that > > > selects a specific node in the DOM. But is there a way to easily get a > > > JavaScript statement for selecting a node? > > > Not that I know of, but you probably don't want such a thing anyways. > > Google document.evaluate for how to use the XPath expression. > > > Brian
-- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
