• Tech Travel Hub is your one stop, ultimate tour guide to all things tech, travel, visas and digital nomads
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
Menu
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
View Blog
May 20, 2023May 20, 2023

Issues with Sendkeys Not Working With Different Browser

Issue Details:With the latest IEDriver, It is seen sendKeys method is not able to push data into testarea. The same method works great with Firefox and Chrome.

There is one more issue upon clicking on save button, the text entered, gets disappear.

What to check:

The check points are:
Check the version of Selenium,IEDriverServer.exe, Internet Explorer [For IE11, we need selenium 2.44 or above.]
Resolution:
There might be a workaround-Just press a Tab using Sendkeys(“TAB”). It might trigger the underlaying javascript
The main issue is problem related to nativeEvents in IE.
Issue Details:
Sendkeys may send data one character by one character. As a result execution becomes very slow.

What to check:
The driver version. In 64 bit of drivers , It may so happen. Downgrade the driver to 32 bit.Also you need to check the same version of IEDriverServer.exe. So basically if you are using 32 bit of browser, the driver has to be 32 bit.

Issue Details:
Sendkeys may send data partially in parallel mode of execution but sends full string while running in one thread.

What to check:
Check the application type.It is very common in Angular JS applications.Always upgrade the library to the latest Angular JS.
if you can not upgrade the Angular JS,use the following code:


var i;
for(i = 0; i < toxtToSend.length; i++){
EditBox.sendKeys(toxtToSend.charAt(i));
}

or we can try with java script executor class:


WebDriver driver = new FirefoxDriver();
JavascriptExecutor jse = (JavascriptExecutor) driver;
jse.executeScript("document.getElementById('gbqfq').value = 'Test';");

one more solution could be to use java.awt package:
Initial phase set the focus to the element and write the below code:


driver.findElemnt(by.xpath("abc")).setfocus();
paste();

public static void paste() throws AWTException
{
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_CONTROL);
robot.keyPress(KeyEvent.VK_V);
robot.keyRelease(KeyEvent.VK_CONTROL);
robot.keyRelease(KeyEvent.VK_V);
}

Issue Details:
Sendkeys does not work properly when using gecodriver.

What to check:
Either use

System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"false");

 or using Firefox options setting up the capabilities

 

 

Post navigation

Previous post
Next post

Umer Umer

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • The Core Element Of A Woocommerce Store And 5 Incredible Plugins
  • 15 Amazing Must-Have WooCommerce Plugins in 2021
  • How to Make A MP4 File Smaller Using Wondershare UniConverter – 5 Important Tips
  • Wondershare Filmii – Create Videos Easily with AI-Powered Video Editor With 4 Important Tips
  • 10 Wonderful Places in India

Categories

  • Adventure
  • Agile Methodology
  • AI
  • All world Tour
  • Android Development
  • Ansible
  • App
  • App Development
  • Artificial Intelligence
  • AWS
  • Bitcoin
  • BlockChain
  • Blogging
  • Box Packing
  • Business
  • business
  • Business Communication
  • buying guide
  • C
  • car
  • Care
  • Certification
  • Certification
  • Chatbot
  • cinema
  • Cloud Tech
  • Content Marketing
  • Corporate
  • covid-19
  • crucible
  • Cryptocurrency
  • Database
  • DevOps
  • DevOps
  • Digital Marketing
  • Drawing
  • Dress
  • Earn Money Online
  • Educational
  • Employment
  • Entertainment
  • Exceptions In Java
  • Fashion
  • Festivals
  • Finance
  • Fitness
  • Food
  • Game
  • Gift ideas
  • Graphic Designers
  • Groovy
  • Health
  • Health
  • home
  • home improvement
  • HR
  • IllegalThreadStateException in Java
  • India Tour
  • Instagram
  • Ios
  • ISO
  • Java
  • Javascript
  • job
  • Kids Section
  • Kitchen
  • Law
  • Life Style
  • Lifestyle
  • Lifestyle Home Improvement
  • Magento
  • Main Stories
  • Management
  • Mattress
  • Motorable
  • Movie
  • nursing
  • Office Productivity
  • Pendrive
  • Perspective
  • Pet
  • Popular
  • Programming
  • Python
  • RDT
  • Relationships
  • Selenium
  • SEO
  • Skin
  • SOA
  • SOAPUI
  • Social Media
  • Social Media Marketing
  • Software
  • software development
  • Software Development Model
  • Software Engineering
  • Software Testing
  • Sports
  • Startup
  • T Robot
  • TDD
  • Tech
  • Tech News
  • Tech News
  • Technology
  • Tool
  • Tour Guide
  • Tour Guide
  • Travel
  • UFT
  • Uncategorized
  • USB Cable
  • VBscript
  • VPN
  • Web Development
  • WebHosting
  • WebServices
  • Wildlife
  • Wordpress
  • Yoga
  • Youtube

Tags

Instagram Instagram Marketing Marketing SEO Thoptv App

Categories

  • Tech
  • Travel
  • Visas
  • Digital Nomad
  • Tech
  • Travel
  • Visas
  • Digital Nomad

Publishing

If you would like to publish on our site, please email admin@techtravelhub.com

Quick Links

  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact
  • Home
  • Blog
    • Technology
      • General Tech
      • Blogging
      • Java
    • Lifestyle
      • General Lifestyle
    • Travel
    • Educational
    • Business
  • About
  • Contact

Contact

Tech Travel Hub LLC

Address:
8 The Green STE A
Dover
Delaware, 19901

Phone: +1 302 956 9948