有没有办法使用无头驱动程序登录网站,并在普通浏览器中显示结果输出页面,如Internet Explorer或Firefox。
我目前正在使用 python 2.7 和 selenium 2.47.3
答案 0 :(得分:0)
我相信这种情况的最佳解决方案是使用screeshoot来可视化页面。尝试:
// Declare the function:
void GetLightning(int* day, int* month, int* year, int *hour, int *minute);
// Define the function:
void GetLightning(int* day, int* month, int* year, int *hour, int *minute)
{
*day = 12;
*month = 11; // November
*year = 1955;
*hour = 10;
*minute = 4;
}
int main(void)
{
int day;
int month;
int year;
int hour;
int minute;
// Call the function
GetLightning(&day, &month, &year, &hour, &minute);
// Show the results:
printf("Lightning will strike the clocktower at precisely %02d:%02d on %d/%d/%d!\n", hour, minute, month, day, year);
return 0;
}