Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
sandeepkommineni
Posts : 1
Join date : 2017-10-05

How find any text in browser screen and click on it? Empty How find any text in browser screen and click on it?

Thu Oct 05, 2017 2:02 pm
Ok so i am trying to automate something, I am using selenium and python. I know i can find text by XPath , css selectors , by link_text or other method indeed i tried all but the website using very powerful security in their coding like:
class id change after every refresh so your previous xpath , css selector will not work for next refresh of same page.
send button doesn't appear until you type something from the keyboard , they are using keypress event, if you try to execute js and try to fill via .innerHTML or value="etc then message box disappear instant. For more info visit: Tekslate
since class id and name change after every refresh so .send_keys() also not working with this.
while inspect element their code is showing css but the opening source code of that page shows only a js script nothing else.
so what i tried is a python module which clicks on basis on coordinate. I tried to find string coordinate then click on it , Its working but the problem is for this i have to go to that browser page and bring front that browser page otherwise coordinate type the letter anywhere on current screen no matter current screen is youtube or current screen is pycharm etc. so i am finding a way where i don't have to bring that browser page at front while i am working on another window of any software. script do this as backend. I want something: find a text on current screen (not from source code) browser (in the same session which selenium is using) and click on it or if possible can I modify this script so this script clicks on those coordinate on that browser page in the back-end.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum