Session on Super Cool daily chores with Selenium by Gaurav Khurana

Agile Testing Alliance
Agile Testing AllianceAgile Testing Alliance
Super Cool daily chores
with Selenium
By :- Gaurav Khurana
www.udzial.com
Cool Things
Agenda
Background
Cool thing
Demo
Super Cool thing
Demo
MAHA Cool
Time Sheet
~100% compliance is required
Must be filled daily before 12 am local
time.
Can affect your appraisal at some org
(compliance issue)
Routine task so people forget to fill it
Same Daily Repetitive task
Social
Media
Addiction /
Distraction
• Facebook / Instagram
• LinkedIn / Telegram
• Gmail / WhatsApp
• Distracts you from your work
• Apply some measures to control so it does not
affect professional work
• Some of these waste your time.
Cool Thing
Selenium can fill my timesheet
partially (99%)
Selenium can help bring some
discipline
Self control is the key though.
Super Cool
Run these 2 program via a batch script
cd S:AutomationTestProjectFillHours_sampletargettest-
classes
s:
java -classpath .;selenium-server-standalone-3.141.59.jar
fillHours_main
timeout /t 30
Concepts
• Open your profile so you need not to provide login
details
• ChromeOptions options = new ChromeOptions();
• options.addArguments("--user-data-
dir=c:Users{YourUserName}AppDataLocal
GoogleChromeUser Data");
• driver=new ChromeDriver(options);
• JavascriptExecutor je =
((JavascriptExecutor)driver);
• je.executeScript("alert('Please submit your
hours after verifying..Its very very
important');");
MAHA Cool
• What if the batch script run
automatically ??
• Lets See
Task
Scheduler
in Windows
You can even use these options :-
1) Test Project – Scheduled
Jobs Feature
2) Jenkins
At the core its Selenium who is doing things
Thank you
• www.udzial.com - Udzial Means Share. #SharingIsCaring
• www.gauravkhurana.in
• bit.ly/linkedin_gk
• Gaurav Khurana (@gauravkhuraana) / Twitter
1 of 10

Recommended

Parallel Test execution in Cypress with CI/CD by
Parallel Test execution in Cypress with CI/CDParallel Test execution in Cypress with CI/CD
Parallel Test execution in Cypress with CI/CDAgile Testing Alliance
7 views10 slides
Localisation Testing using UI automation by
Localisation Testing using UI automationLocalisation Testing using UI automation
Localisation Testing using UI automationAgile Testing Alliance
8 views13 slides
AI in UI automation using Helenium by
AI in UI automation using HeleniumAI in UI automation using Helenium
AI in UI automation using HeleniumAgile Testing Alliance
13 views12 slides
Automation for test data anonymization by
Automation for test data anonymizationAutomation for test data anonymization
Automation for test data anonymizationAgile Testing Alliance
6 views9 slides
MobSF: Mobile Security Testing (Android/IoS) by
MobSF: Mobile Security Testing (Android/IoS)MobSF: Mobile Security Testing (Android/IoS)
MobSF: Mobile Security Testing (Android/IoS)Agile Testing Alliance
41 views11 slides
AI-Automation-Using-Computer-Vision-in-Testing.pptx by
AI-Automation-Using-Computer-Vision-in-Testing.pptxAI-Automation-Using-Computer-Vision-in-Testing.pptx
AI-Automation-Using-Computer-Vision-in-Testing.pptxAgile Testing Alliance
16 views9 slides

More Related Content

More from Agile Testing Alliance

Significance of AI in Testing by
Significance of AI in TestingSignificance of AI in Testing
Significance of AI in TestingAgile Testing Alliance
23 views23 slides
Testing Data Analysis Framework - A Case Study_orig.pptx by
Testing Data Analysis Framework - A Case Study_orig.pptxTesting Data Analysis Framework - A Case Study_orig.pptx
Testing Data Analysis Framework - A Case Study_orig.pptxAgile Testing Alliance
7 views9 slides
Robust Testing Strategies for Machine Learning Models by
Robust Testing Strategies for Machine Learning Models Robust Testing Strategies for Machine Learning Models
Robust Testing Strategies for Machine Learning Models Agile Testing Alliance
7 views23 slides
Accessibility Testing.pptx by
Accessibility Testing.pptxAccessibility Testing.pptx
Accessibility Testing.pptxAgile Testing Alliance
12 views12 slides
#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx by
#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx
#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptxAgile Testing Alliance
22 views27 slides
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf... by
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...Agile Testing Alliance
231 views12 slides

More from Agile Testing Alliance(20)

#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx by Agile Testing Alliance
#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx
#ATAHyderabad Meetup Welcome Session and Introductions Adi.pptx
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf... by Agile Testing Alliance
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf...
#ATAGTR2021 Presentation : "Common Testing Mistakes –Are we really evolving?... by Agile Testing Alliance
#ATAGTR2021 Presentation :  "Common Testing Mistakes –Are we really evolving?...#ATAGTR2021 Presentation :  "Common Testing Mistakes –Are we really evolving?...
#ATAGTR2021 Presentation : "Common Testing Mistakes –Are we really evolving?...
#ATAGTR2021 Presentation : "Chaos engineering: Break it to make it" by Anupa... by Agile Testing Alliance
#ATAGTR2021 Presentation :  "Chaos engineering: Break it to make it" by Anupa...#ATAGTR2021 Presentation :  "Chaos engineering: Break it to make it" by Anupa...
#ATAGTR2021 Presentation : "Chaos engineering: Break it to make it" by Anupa...
#ATAGTR2021 Presentation : "Unlocking the Power of Machine Learning in the Mo... by Agile Testing Alliance
#ATAGTR2021 Presentation : "Unlocking the Power of Machine Learning in the Mo...#ATAGTR2021 Presentation : "Unlocking the Power of Machine Learning in the Mo...
#ATAGTR2021 Presentation : "Unlocking the Power of Machine Learning in the Mo...
#ATAGTR2021 Presentation : "Performance Evaluation Strategy of multi-access e... by Agile Testing Alliance
#ATAGTR2021 Presentation : "Performance Evaluation Strategy of multi-access e...#ATAGTR2021 Presentation : "Performance Evaluation Strategy of multi-access e...
#ATAGTR2021 Presentation : "Performance Evaluation Strategy of multi-access e...
#ATAGTR2021 Presentation : "Spice up your Testing Gamify it out!" by Geosley ... by Agile Testing Alliance
#ATAGTR2021 Presentation : "Spice up your Testing Gamify it out!" by Geosley ...#ATAGTR2021 Presentation : "Spice up your Testing Gamify it out!" by Geosley ...
#ATAGTR2021 Presentation : "Spice up your Testing Gamify it out!" by Geosley ...
"Taking biases into account : Why retrospectives promise more and deliver les... by Agile Testing Alliance
"Taking biases into account : Why retrospectives promise more and deliver les..."Taking biases into account : Why retrospectives promise more and deliver les...
"Taking biases into account : Why retrospectives promise more and deliver les...
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab" by Agile Testing Alliance
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Session on API testing, evolution of modern API and automation techniques by ... by Agile Testing Alliance
Session on API testing, evolution of modern API and automation techniques by ...Session on API testing, evolution of modern API and automation techniques by ...
Session on API testing, evolution of modern API and automation techniques by ...
#ATATalk - Episode 1 : Session on Selenium Exceptions by Pallavi Sharma by Agile Testing Alliance
#ATATalk - Episode 1 : Session on Selenium Exceptions by Pallavi Sharma#ATATalk - Episode 1 : Session on Selenium Exceptions by Pallavi Sharma
#ATATalk - Episode 1 : Session on Selenium Exceptions by Pallavi Sharma
Session on Contemporary Exploratory Testing by Maaret Pyhäjärvi by Agile Testing Alliance
Session on Contemporary Exploratory Testing by Maaret PyhäjärviSession on Contemporary Exploratory Testing by Maaret Pyhäjärvi
Session on Contemporary Exploratory Testing by Maaret Pyhäjärvi
Session on "The Screenplay Pattern: Better Interactions for Better Automation... by Agile Testing Alliance
Session on "The Screenplay Pattern: Better Interactions for Better Automation...Session on "The Screenplay Pattern: Better Interactions for Better Automation...
Session on "The Screenplay Pattern: Better Interactions for Better Automation...
Session on Model based testing – A step towards “Automation of Everything” by... by Agile Testing Alliance
Session on Model based testing – A step towards “Automation of Everything” by...Session on Model based testing – A step towards “Automation of Everything” by...
Session on Model based testing – A step towards “Automation of Everything” by...
Session on Look beyond what the eyes can see- Reviving Visual validations by ... by Agile Testing Alliance
Session on Look beyond what the eyes can see- Reviving Visual validations by ...Session on Look beyond what the eyes can see- Reviving Visual validations by ...
Session on Look beyond what the eyes can see- Reviving Visual validations by ...

Recently uploaded

Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...ShapeBlue
86 views25 slides
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueShapeBlue
147 views20 slides
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineShapeBlue
154 views19 slides
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...ShapeBlue
128 views20 slides
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
68 views13 slides
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueShapeBlue
134 views54 slides

Recently uploaded(20)

Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue86 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue147 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online by ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue154 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue128 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue68 views
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue134 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems by ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue172 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue149 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada
Fwdays49 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue105 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... by ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue114 views
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely76 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue52 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10110 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue58 views

Session on Super Cool daily chores with Selenium by Gaurav Khurana

  • 1. Super Cool daily chores with Selenium By :- Gaurav Khurana www.udzial.com Cool Things
  • 3. Time Sheet ~100% compliance is required Must be filled daily before 12 am local time. Can affect your appraisal at some org (compliance issue) Routine task so people forget to fill it Same Daily Repetitive task
  • 4. Social Media Addiction / Distraction • Facebook / Instagram • LinkedIn / Telegram • Gmail / WhatsApp • Distracts you from your work • Apply some measures to control so it does not affect professional work • Some of these waste your time.
  • 5. Cool Thing Selenium can fill my timesheet partially (99%) Selenium can help bring some discipline Self control is the key though.
  • 6. Super Cool Run these 2 program via a batch script cd S:AutomationTestProjectFillHours_sampletargettest- classes s: java -classpath .;selenium-server-standalone-3.141.59.jar fillHours_main timeout /t 30
  • 7. Concepts • Open your profile so you need not to provide login details • ChromeOptions options = new ChromeOptions(); • options.addArguments("--user-data- dir=c:Users{YourUserName}AppDataLocal GoogleChromeUser Data"); • driver=new ChromeDriver(options); • JavascriptExecutor je = ((JavascriptExecutor)driver); • je.executeScript("alert('Please submit your hours after verifying..Its very very important');");
  • 8. MAHA Cool • What if the batch script run automatically ?? • Lets See
  • 9. Task Scheduler in Windows You can even use these options :- 1) Test Project – Scheduled Jobs Feature 2) Jenkins At the core its Selenium who is doing things
  • 10. Thank you • www.udzial.com - Udzial Means Share. #SharingIsCaring • www.gauravkhurana.in • bit.ly/linkedin_gk • Gaurav Khurana (@gauravkhuraana) / Twitter