Jun-12-2021, 03:35 PM
Hello,
First of all, I'm new to working with Python, especially Selenium. So I connected to a page with the webdriver and also already grabbed the InnerHTML I need. Here's my problem, InnerHTML is a "list" and I only want to output one value. It looks something like this:
Thank you very much in advance!
First of all, I'm new to working with Python, especially Selenium. So I connected to a page with the webdriver and also already grabbed the InnerHTML I need. Here's my problem, InnerHTML is a "list" and I only want to output one value. It looks something like this:
<html> <body> <pre style="example" xpath="1"> "amount": 12{ "value" : 3 }, </pre> </body> </html>^It's just for illustration, because the actual thing is much longer. InnerHTML looks like this:
"amount": 12{ "value" : 3 },^This is where I am now. I can't specify a line because the page is not static. How do I make python find "value" from a variable in InnerHTML ? Please note that there is a colon after "value"!
Thank you very much in advance!
