0

I need to modify TagName of html sourcecode using selenium in python. For example:

how to edit span in div:

  <span class="main-menu">

in this:

  <div class="main-menu">

Thank you and best regards.

3
  • 1
    Why do you want to change the tag in the source code? As the change that you are doing is on the client side and the moment you refresh/reload the page the changes will be lost. Commented Apr 15, 2020 at 15:16
  • I know but i need to do this, could you explain me? Commented Apr 15, 2020 at 15:25
  • What you can do is stackoverflow.com/a/15086792/8375783 Commented Apr 15, 2020 at 20:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.