i am trying to webscrape to pycharm using selenium : this is the HTML text that gives the output -£0.03
I`d like to find this value by xpath and print the output to pycharm console.

    <div class="pnl runner-info-elem below-runner-info" ng-if="ctrl.vm.events.shouldShowPnl(runner)" ng-class="{'below-runner-info': ctrl.vm.data.displayRaceCardInfo}"><!----><mv-runner-pnl ng-repeat="(type, pnl) in ctrl.vm.data.pnl[runner.key] track by type" type="actual" values="pnl.values" separator="comma" formatter="::pnl.formatter"><!-- PnL --><div class="runner-elem-pnl actual-pnl"><span class="prefix"></span><span class="pnl-value-container"> <span class="pnl-value negative">-£0.03</span> </span><span class="pnl-value-container hidden"><span 

I have tried the following:

driver.find_element_by_xpath('//*[@id="main-wrapper"]/div/div[3]/div/div[2]/div/div[1]/div[3]/div/div[1]/div/bf-main-market/bf-main-marketview/div/div[2]/bf-marketview-runners-list[2]/div/div/div/table/tbody/tr[1]/td[1]/div/div[3]').get_attribute(pnl.value)

print(pnl.value)

my result is :NameError: name 'pnl' is not defined

is this even possible ? if not by xpath then by any other means ?
As i said i am totally new to this and trying to learn from youtube tutorials.


