M
M
Mitya ToDaSyo2019-08-24 01:39:28
PHP
Mitya ToDaSyo, 2019-08-24 01:39:28

How to get html using WebDriver knowing id?

How to get block html by id using WebDriver ? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1001001, 2019-08-24
@dimastik1986

something like that on puff

$element = $driver->findElement(WebDriverBy::id('id'));
$element->getAttribute('innerHTML');

js can still get in there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question