Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:
for first:
$elem = $driver->find_element('//input[1][@class="dx-texteditor-input"]')->send_keys("Live");for second:
$elem = $driver->find_element('//input[2][@class="dx-texteditor-input"]')->send_keys("Live");And with Inspector chrome,i have thoses xpath :
First:
//*[@id="parameters"]/div/div[4]/div[2]/div/input
Second:
//*[@id="program_logs"]/div/div[4]/div[2]/div/input
I Think i have to use 'id' but i don't know how
Thanks !!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Xpath with Selenium
by Corion (Patriarch) on Apr 28, 2016 at 12:28 UTC | |
by Chaoui05 (Scribe) on Apr 28, 2016 at 12:49 UTC | |
by Corion (Patriarch) on Apr 28, 2016 at 12:54 UTC | |
by Chaoui05 (Scribe) on Apr 28, 2016 at 13:10 UTC |