Selenium WebDriver - Missing 'text' parameter (IndexOutOfBounds) - SendKeys - selenium

I'm trying to run a test on google's website and when I send the text I'm saying the following message:
Missing 'text' parameter (IndexOutOfBounds)
Code:
browser.FindElement(By.Name("q")).SendKeys("a");
What I do not understand is that until yesterday the code was running normally.
Can someone help me solve this error?
tks!
Version:
geckodriver-v0.16.0-win64
Selenium Client & WebDriver - C# 3.4.0
Firefox 53.0v

Try updating your Selenium.WebDriver and Selenium.Support packages to latest (v3.4.0). If you already have v3.4.0 make sure you have rebuilt all.
I just hit the same issue and updated v3.2.0 -> v3.4.0 and that fixed it for me.
(Just for context, I ended up with that error after getting 'Expected [object Undefined] undefined to be a string (IndexOutOfBounds)' following an automatic Firefox update to v53. The fix for that was to upgrade to geckodriver v0.16.0)

#Kayh and #NickBaker
There is still an issue: how did that work?
https://github.com/mozilla/geckodriver/issues/511
I am using Firefox 53.0.3 (32-bit), geckodriver 0.16.1 to drive browser with Selenium 3.4.0 but still getting
System.InvalidOperationException : Missing 'text' parameter (IndexOutOfBounds)
EDIT:
https://github.com/mozilla/geckodriver/issues/511 fixed now on 02 July 2017. Combination of Selenium client binding 3.4.3, geckodriver 0.17, Firefox 54 works now.

Related

Chrome failed to start - Chrome version 75.0.3770.100

We have selenium tests in C# running on jenkins. With the latest version of Chrome 75 the tests are starting to fail during execution with the error "Chrome failed to start"
I went through some articles and have implemented the below code as part of my arguments for Chrome.
chromeOptions.AddArgument("--enable-automation");
chromeOptions.AddArgument("--no-sandbox");
chromeOptions.AddArgument("--disable-extensions");
chromeOptions.AddArgument("--disable-print-preview");
chromeOptions.AddArgument("--disable-gpu");
chromeOptions.AddArgument("--disable-software-rasterizer");
chromeOptions.AddArgument("--disable-gpu-sandbox");
chromeOptions.AddArgument("--disable-features=VizDisplayCompositor");
chromeOptions.AddArgument("--start-maximized");
chromeOptions.AddArgument("--disable-dev-shm-usage");
chromeOptions.PageLoadStrategy = PageLoadStrategy.Normal;
This happens during jenkins execution only.
I'm seeing this on Chrome 76. The solution seems to be to remove the --disable-software-rasterizer argument.

Which version of marionette_driver with Firefox 52.9.0esr (Tor Browser 7.5.6)

The Tor Browser updated to 7.5.6. The previously working code failed with
InvalidSessionIdException:
After updating to marionette_driver 2.7, the call to client.start_session() failed with
marionette_driver.errors.UnknownCommandException: WebDriver:NewSession
Which version of the marionette_driver should be used with this Firefox version? (Or maybe another framework like Selenium?)
Since there are only a few version at Pypi, and no other answer seems to exist, just try them all starting with the current one.
It worked with version 2.5:
pip2 install marionette_driver==2.5
UPDATE: The InvalidSessionIdException returned. To fix this, call client.start_session() again (it can be called when catching the exception in a try-block)

Unable to load webextension in firefox using python selenium

Hi I am seeing this issue when I try to load a Firefox webextension using Python Selenium:
selenium.webdriver.firefox.firefox_profile.AddonFormatError: ("[Errno 2] No such
file or directory: 'c:\\users\\admini~1\\appdata\\local\\temp\\tmpr
wj4ed.xxx.xpi\\install.rdf'", )
Code is as below
from selenium import webdriver
extn_path = "C:\Program Files (x86)\xxxxx\xxx.xpi"
profile = webdriver.FirefoxProfile()
profile.add_extension(extn_path)
self.browser=webdriver.Firefox(profile,executable_path='xxx\geckodriver.exe')
Versions used
Selenium 3.12
Gecko v.0.20
Firefox- 60
Can anyone let me know why I am facing this issue. I did see that many people are facing this issue and it's mentioned that it's a known issue but with latest Selenium and Gecko driver issue it is expected to be resolved.
However, I don't see it working. Any tips or inputs.
can you try double front slash instead one single front slash inside your path

Selenium test tryingnto use firefox instead of chrome

I have the following in my selenium-webdriver test (the test is written as coffee-script):
#driver = new selenium.Builder()
.withCapabilities(selenium.Capabilities.chrome())
.build()
Yet when I run this test the error I get is:
Error: Failed to install profile; firefox terminated with Result(code=-1073
741819, signal=null)
I am perplexed why its trying to start firefox (there is no reference to firefox in my code). Also, at one point this was working. I am not sure what changed in my laptop which has resulted in this behavior.
Thanks for any help.

selenium phpunit click function not working

I am using friefox 27.0.1 and selenium stand alone 2.15 i am getting below error for click()
RuntimeException: Invalid response while accessing the Selenium Server at : ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Argument 1 of EventTarget.dispatchEvent does not implement interface Event.
You are extremely out of date. Upgrade to the selenium standalone of 2.40.0 and this will fix your issue.
Source:
Person that had experience with this exact issue.
I updates selenium to 2.39.0 and firefox version to 28 then it worked fine for me.