How to sendkeysElement using R

+1 vote

I'm trying to sendkeysElement using R. Please refer this code:

require(RSelenium)
remdir<-remoteDriver()
remdir$open()

remdir$navigate("http://www.flipkart.com")
sbox<-remdr$findElement(using = 'name',"q")

sbox$sendkeysToElement(list("laptops",key="enter"))

I get the following error:

Error in checkError(res) : 
Undefined error in httr call. httr output: length(url) == 1 is not TRUE
Dec 18, 2018 in Data Analytics by Sophie may
• 10,620 points
1,597 views

1 answer to this question.

0 votes

You have silly typo errors in your code, try this, I've corrected it:

require(RSelenium)
rD <- rsDriver()
remdir<- rD$client
remdir$open()

remdir$navigate("http://www.flipkart.com")
sbox <- remdir$findElement(using = 'name',"q")

sbox$sendKeysToElement(list("laptops",key="enter"))
rm(rD)
gc()
answered Dec 18, 2018 by Tyrion anex
• 8,700 points

Related Questions In Data Analytics

0 votes
1 answer

How to change y axis max in time series using R?

The axis limits are being set using ...READ MORE

answered Apr 3, 2018 in Data Analytics by Sahiti
• 6,370 points
3,851 views
0 votes
1 answer
0 votes
2 answers

How to use group by for multiple columns in dplyr, using string vector input in R?

data = data.frame(   zzz11def = sample(LETTERS[1:3], 100, replace=TRUE),   zbc123qws1 ...READ MORE

answered Aug 6, 2019 in Data Analytics by anonymous
14,117 views
+1 vote
1 answer

How to convert a list of dataframes in to a single dataframe using R?

You can use the plyr function: data <- ...READ MORE

answered Apr 14, 2018 in Data Analytics by Sahiti
• 6,370 points
7,100 views
+10 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 9, 2018 in Data Analytics by Abhi
• 3,720 points
1,665 views
+1 vote
1 answer

Error saying "vector size cannot be NA" when using R with data mining

You can use the removesparseterm function.  Removes sparse ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
4,875 views
+1 vote
2 answers
0 votes
1 answer

Trying to find frequent itemsets of a data set using arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", "milk", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
839 views
+1 vote
3 answers

How to change the value of a variable using R programming in a data frame?

Try this: df$symbol <- as.character(df$symbol) df$symbol[df$sym ...READ MORE

answered Jan 11, 2019 in Data Analytics by Tyrion anex
• 8,700 points
35,866 views
0 votes
1 answer

R programming: How to pass variables from a r program to mysql function?

To include the R variables called start.date and end.date, you can use paste to ...READ MORE

answered Dec 28, 2018 in Data Analytics by Tyrion anex
• 8,700 points
1,347 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP