在tripadvisor上使用RSelenium传递日期并获取价目表

时间:2018-03-19 04:14:27

标签: rselenium

我在tripadvisor上使用RSelenium获取一些信息(比如价格),但我坚持如何传递日期

以下是我的尝试。有人可以帮助我。提前致谢!!

chrome$navigate("https://www.tripadvisor.in/")          
a <-chrome$findElement(using = 'css selector', ".typeahead_input")
a$sendKeysToElement(list("Bangalore"))

chrome$findElement(using = 'css selector', ".submit_text")$clickElement()
#chrome$findElement(using = 'css selector', 
".ui_picker_arrow_target")$clickElement()
chrome$findElement(using = 'css selector', "#PERSISTENT_TRIP_SEARCH_BAR > 
div.ui_columns.is- mobile.datepicker_box.trip_search.metaDatePicker.hotels_static_datepickers.wrap_label.responsive-inline-mobile.usePickerTypeIcons.hasDates.with_children > div:nth-child(2) > div > div.prw_rup.prw_datepickers_trip_search_dates.ui_column.responsive_inline_priority.supports_pre_pop_with_default_dates.wctx-tripsearch > div > span.unified-picker.ui_picker_field.focused > span.picker-inner > span")$clickElement()

0 个答案:

没有答案