You can continue scraping elements with shadow root or shadow dom through selenium, first right click on the target element and copy its js path.
second_name = driver.execute_script('return COPIED_JS_PATH') second_name.send_keys('Doe')