Discussion:
[selenium-users] I am unable enter the text in a text field
sachin patil
2018-12-04 13:22:54 UTC
Permalink
Hello Guys,

Hope you all are doing great,

Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.

Here is the log from eclipse,

<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.14.0', revision: 'aacccce0', time:
'2018-08-02T20:19:58.91Z'

Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
<div style="position: absolute; top: 0px; left: 0px; visibility: hidden;
height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
font-family: Poppins,Arial,"sans-serif"; font-weight: 400; font-style:
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>


Here is the snippet of my Code,
WebElement EnterCompany =
driver.findElement(By.xpath("//div[@class='Select-placeholder']"));
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");



Thanks in Advance and your help would be very helpful.

Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Meenal Jain
2018-12-04 13:46:40 UTC
Permalink
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the text
into textbook you have to use input tag in your xpath instead of div. Try
below code,it will work.

WebElement EnterCompany =
driver.findElement(By.xpath("//div[@class='Select-input']//following::input"));

//you can ignore below step as directly sending text to text field but in
case it does not work you can include this
EnterCompany.click();

//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");

Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
<div style="position: absolute; top: 0px; left: 0px; visibility: hidden;
height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
sachin patil
2018-12-04 15:47:35 UTC
Permalink
Ok I will try with this code.

WebElement EnterCompany = driver.findElement(By.xpath("/
/div[@class='Select-input']//following::input"))

I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the text
into textbook you have to use input tag in your xpath instead of div. Try
below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but in
case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
<div style="position: absolute; top: 0px; left: 0px; visibility: hidden;
height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rH0n5OdoPYPzWWcJE82uf87pObUSWbPaOpwnBg5XR9bmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
sachin patil
2018-12-05 05:15:11 UTC
Permalink
Hello Meenal,


I just tried with the solution provided by you but that didn't work for me.

Can you please clear me more for the same?

Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the text
into textbook you have to use input tag in your xpath instead of div. Try
below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but in
case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
<div style="position: absolute; top: 0px; left: 0px; visibility: hidden;
height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
sachin patil
2018-12-05 05:27:40 UTC
Permalink
Below id worked for me,


WebElement EnterCompany = driver.findElement(By.id("qual-form-com"));

EnterCompany.sendKeys("rubique.com");

Thanks, Meenal.

Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Hello Meenal,
I just tried with the solution provided by you but that didn't work for me.
Can you please clear me more for the same?
Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the text
into textbook you have to use input tag in your xpath instead of div. Try
below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but
in case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
hidden; height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rHbnknqh%3D0sWswOpz%3DsYfaOHyXWPAvboj%3DTb_7aMWhwKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Meenal Jain
2018-12-05 05:36:49 UTC
Permalink
Sachin, What error you're getting?
Post by sachin patil
Hello Meenal,
I just tried with the solution provided by you but that didn't work for me.
Can you please clear me more for the same?
Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the text
into textbook you have to use input tag in your xpath instead of div. Try
below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but
in case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
hidden; height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
sachin patil
2018-12-05 05:38:24 UTC
Permalink
Now I got resolved it.


Thanks
Post by Meenal Jain
Sachin, What error you're getting?
Post by sachin patil
Hello Meenal,
I just tried with the solution provided by you but that didn't work for me.
Can you please clear me more for the same?
Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the
text into textbook you have to use input tag in your xpath instead of div.
Try below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but
in case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
hidden; height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rF%3DiuTOMeXN_pckTXkee5tOW_E%3Dkr6dbARCW6v%2B47ZOAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Imran Khan
2018-12-05 08:06:56 UTC
Permalink
But, What was the error you were getting earlier?. So that we would be
aware.
Post by sachin patil
Now I got resolved it.
Thanks
Post by Meenal Jain
Sachin, What error you're getting?
Post by sachin patil
Hello Meenal,
I just tried with the solution provided by you but that didn't work for me.
Can you please clear me more for the same?
Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the
text into textbook you have to use input tag in your xpath instead of div.
Try below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field but
in case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried multiple
solutions to get it resolved as from Stack Overflow and other resources but
still could not solve the problem. I am providing you all details with this
email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
hidden; height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it,
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rF%3DiuTOMeXN_pckTXkee5tOW_E%3Dkr6dbARCW6v%2B47ZOAg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rF%3DiuTOMeXN_pckTXkee5tOW_E%3Dkr6dbARCW6v%2B47ZOAg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALtis09vcBebauQhokqQzhdvfDoTbm-ayVmeS0drigVg-kVtXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
sachin patil
2018-12-05 08:10:52 UTC
Permalink
I was getting below error

<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.14.0', revision: 'aacccce0', time:
'2018-08-02T20:19:58.91Z'
Post by Imran Khan
But, What was the error you were getting earlier?. So that we would be
aware.
Post by sachin patil
Now I got resolved it.
Thanks
Post by Meenal Jain
Sachin, What error you're getting?
Post by sachin patil
Hello Meenal,
I just tried with the solution provided by you but that didn't work for me.
Can you please clear me more for the same?
Best Regard
Sachin Patil
+91-9552619077
Post by sachin patil
Ok I will try with this code.
WebElement EnterCompany = driver.findElement(By.xpath("/
I will let you know if this works
Post by Meenal Jain
Hi Sachin,
You'll not be able to enter the text to drive element. To enter the
text into textbook you have to use input tag in your xpath instead of div.
Try below code,it will work.
WebElement EnterCompany =
//you can ignore below step as directly sending text to text field
but in case it does not work you can include this
EnterCompany.click();
//now you'll send text to input field
EnterCompany.sendKeys("rubique.com");
Let me know if you face any issue.
Post by sachin patil
Hello Guys,
Hope you all are doing great,
Guys, I am unable to enter the text in a text field, I tried
multiple solutions to get it resolved as from Stack Overflow and other
resources but still could not solve the problem. I am providing you all
details with this email.
Here is the log from eclipse,
<org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=70.0.3538.110)
(Driver info: chromedriver=2.43.600210
(68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
'2018-08-02T20:19:58.91Z'
Here is the HTML Code,
<div id="react-select-2--value" class="Select-multi-value-wrapper">
<div class="Select-placeholder"></div>
<div class="Select-input" style="display: inline-block;">
<input id="qual-form-com" autocomplete="off" autocorrect="off"
spellcheck="off" aria-activedescendant="react-select-2--value"
aria-expanded="false" aria-haspopup="false" aria-owns="" role="combobox"
style="box-sizing: content-box; width: 19px;" value="">
hidden; height: 0px; overflow: scroll; white-space: pre; font-size: 14px;
normal; letter-spacing: normal; text-transform: none;"></div>
</div>
</div>
<span class="Select-loading-zone" aria-hidden="true">
<span class="Select-loading"></span>
</span>
Here is the snippet of my Code,
WebElement EnterCompany =
EnterCompany.click();
EnterCompany.sendKeys("rubique.com");
Thanks in Advance and your help would be very helpful.
Best Regard
Sachin Patil
+91-9552619077
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it,
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rFgjSbB%3DaXEM4O%3DOHVkuw7OH1iBZMtRG1BxXfowGN9N_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it,
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJQXxzoX8ud0XoYU29WFo_YsTxHzaacsi4mjdHbqtY%2B4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rHy0rqbBF9yA2KX8yeeVsLajKGaFx8V8eOixiDd1DL8hQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmKPArVse%2BU88mE3hXA3KmJyQOsxW09CN5b3%2B1c%2BEFL_-w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAA_T2rF%3DiuTOMeXN_pckTXkee5tOW_E%3Dkr6dbARCW6v%2B47ZOAg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAA_T2rF%3DiuTOMeXN_pckTXkee5tOW_E%3Dkr6dbARCW6v%2B47ZOAg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CALtis09vcBebauQhokqQzhdvfDoTbm-ayVmeS0drigVg-kVtXg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CALtis09vcBebauQhokqQzhdvfDoTbm-ayVmeS0drigVg-kVtXg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA_T2rH1Zq9eoUYNtz%3DnKxzS8qtyQJVvQA_VU0me6SrhT7OmvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...