如何在Rselenium的内部Web浏览器中清除历史记录?

时间:2016-10-29 09:56:35

标签: r rselenium

在网络浏览器中,可以清除历史记录。

如何使用R命令在firefox RSelenium浏览器中清除历史记录?

1 个答案:

答案 0 :(得分:1)

请参阅Possible to disable firefox and chrome default caching?

export default class DayView extends Component { constructor(props) { super(props); this.state = { value: '' }; // Bind `this` this.handleKeyPress = this.handleKeyPress.bind(this); } handleKeyPress(e) { // Get input value var value = e.target.value; // User has already typed a # var hasSymbol = !!value.substring(0, value.length - 1).match(/\#/); // Check if last character is a # if (value[value.length - 2] === '#') { alert('There is a # symbol'); } // Check if this last character is a # // and the value already has one if (hasSymbol && value[value.length - 1] === '#') { alert('There is an other # symbol'); } // Set state this.setState({ value }); } render() { return ( <input onChange={this.handleKeyPress} value={this.state.value}> ) } } 和firefox中,您可以按如下方式传递:

RSelenium