Support > Forums > OpenBots Studio > Not able to enter text in a google form with the activity Element Action

Not able to enter text in a google form with the activity Element Action

David Santos

  • Reporter
  • Calender Icon August 02,2021 at 11:50 AM

Hi Openbots experts, When trying to enter text in a field of a google form I got this error message in the step "Selenium Element Action" (We am using the version 1.5.2.)

The Xpath extracted from the google form for a specific field is : //[@id="mG61Hd"]/div[2]/div/div[2]/div[1]/div/div/div[2]/div/div[1]/div/div[1]/input To enter the Xpath parameter I used this form: "//[@id='mG61Hd']/div[2]/div/div[2]/div[1]/div/div/div[2]/div/div[1]/div/div[1]/input" Actually two errors came up:

1)Source:C:\Users\userA\OneDrive\Documentos\OpenBots Studio\OB Scripts\NewEmployees\Main.obscript, Line: 15 Selenium Element Action [Set Text - Find Element by "XPath" = "//*[@id='mG61Hd']/div[2]/div/div[2]/div[1]/div/div/div[2]/div/div[1]/div/div[1]/input" - Instance Name 'BwDf'], Exception Type: InvalidCastException, Exception Message: No se puede convertir un objeto de tipo 'System.Diagnostics.Process' al tipo 'OpenQA.Selenium.IWebDriver'.

2)Source: C:\Users\userA\OneDrive\Documentos\OpenBots Studio\OB Scripts\NewEmployees\Main.obscript, Line: 15 For Each 'vEmpDataRow' in 'vEmployeesDT.Rows', Exception Type: InvalidCastException, Exception Message: No se puede convertir un objeto de tipo 'System.Diagnostics.Process' al tipo 'OpenQA.Selenium.IWebDriver'.

Could you see anything that is not according to the expected input parameters rules? Thanks!

This forum has 316 topics, 681 replies, and was last updated 2 days ago by Faheem Syed

David Santos

  • Participant
  • Calender Icon August 02,2021 at 3:49 PM

Thanks again Natalie! You were right, by mistake I took the old activities of the web browser actions. Regards.

Nataly Alvarado...

  • Participant
  • Calender Icon August 02,2021 at 3:29 PM

Hi David,

the error indicates that you might be trying to mix commands for Native Chrome (which use System.Diagnostics.Process) and Selenium (which use OpenQA.Selenium.IWebDriver). When creating web application instances, it is important to use the commands that are compatible with that particular instance type. In this case, verify that you are employing the Create Selenium Browser command to create the selenium session and navigate to the desired URL. Then, you'll be able to use the commands under the Web Browser Commands group to interact with that session.

You are not authorized to reply, please click here to login and add your reply to this topic.