Python Forum
can i get any xpath on click event?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can i get any xpath on click event?
#3
No not like that...

for examples
import requests
from flask import Flask
app = Flask(__name__)

@app.route('/')
def get_data():
    data = requests.get('https://maharerait.mahaonline.gov.in/').text
    print(data)
    return data

app.run(debug=True)
this is my code which opens third party website.

if you run this you will get to see the text and page. i click on anytext on page to get the xpath?
i click and system prints the xpath without using 'inspect element' option


or forget xpath. if i can get tag associated with that text if i click on anytext written?
Reply


Messages In This Thread
RE: can i get any xpath on click event? - by Prince_Bhatia - Apr-09-2019, 12:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020